Deo skripte:
Vaš odgovorDebug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Vaš odgovorSlika/video ingame problema(obavezno ako je ingame problem): https://prnt.sc/QcOoU2_tXWLN - https://prnt.sc/PYny7t6BgAr5
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.
Vaš odgovorVaš odgovorCMD:dchat(playerid, params[])
{
new tmp, name;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Turn on Discord Chat using /dchaton.");
if (sscanf(params, "s", tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /dchat ");
SendDC(CHANNEL_ID, "%s: %s ", name, tmp);
return 1;
}
CMD:dchaton(playerid, params[])
{
new playername;
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==1) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched on!");
DiscordStats=1;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned on.");
return 1;
}
CMD:dchatoff(playerid, params[])
{
new name;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched off!");
DiscordStats=0;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned off.");
return 1;
}
CMD:dchat(playerid, params[])
{
new tmp, name;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Turn on Discord Chat using /dchaton.");
if (sscanf(params, "s", tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /dchat ");
SendDC(CHANNEL_ID, "%s: %s ", name, tmp);
return 1;
}
CMD:dchaton(playerid, params[])
{
new playername;
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==1) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched on!");
DiscordStats=1;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned on.");
return 1;
}
CMD:dchatoff(playerid, params[])
{
new name;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched off!");
DiscordStats=0;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned off.");
return 1;
}public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
if(result == -1) { SendClientMessage(playerid,0xFF6347FF,"* Upisali ste pogresnu komandu. Kucajte /komande za listu dostupnih komandi."); return 0; }
commanddelay = gettime();
new string; format(string,sizeof(string),"%s /%s %s",PlayerName,cmd,params); LogSave( "Logovi/LogKomandi.log", string );
return 1;
}public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
if(result == -1) { SendClientMessage(playerid,0xFF6347FF,"* Upisali ste pogresnu komandu. Kucajte /komande za listu dostupnih komandi."); return 0; }
commanddelay = gettime();
new string; format(string,sizeof(string),"%s /%s %s",PlayerName,cmd,params); LogSave( "Logovi/LogKomandi.log", string );
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava