
public OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmdtext, "/restart", true)==0) {
if(!IsPlayerAdmin(playerid) return 0;
else{
SendClientMessageToAll(COLOR_WHITE,"Server is restarting in 3...");
SetTimer("OnGameModeExit",3000,0);
}
return 1;
}
return 0;
}
|
Originally Posted by ιMσик3у
how simple it is
![]() Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmdtext, "/restart", true)==0) {
if(!IsPlayerAdmin(playerid) return 0;
else{
SendClientMessageToAll(COLOR_WHITE,"Server is restarting in 3...");
SetTimer("OnGameModeExit",3000,0);
}
}
return 1;
}
|
if(strcmp(cmdtext, "/restart", true) ==0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessageToAll(0xFFFFFFAA, "Server is restarting in 3 seconds...");
SetTimer("OnGameModeExit", 3000, 0);
}
return 1;
}
else return 0;
}
if(strcmp(cmd,"/restart", true)==0) {
if(!IsPlayerAdmin(playerid)) {
SendClientMessageToAll(BRIGHTRED,"Server is restarting in 3...");
SetTimer("OnGameModeExit",3000,0);
return 1;
} else {
SendClientMessage(playerid,BRIGHTRED,"=> This command does not exsist, type ''help'' for help.");
return 1; } }
if(strcmp(cmdtext, "/restart", true) ==0) {
if(IsPlayerAdmin(playerid)) {
SendClientMessageToAll(BRIGHTRED, "Server is restarting in 3 seconds...");
SetTimer("OnGameModeExit", 3000, 0); }
return 1; }
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/restart", true) ==0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessageToAll(0xFFFFFFAA, "Server is restarting in 3 seconds...");
SetTimer("RestartGameMode", 3000, 0);
}
return 1;
}
return 0;
}
forward RestartGameMode();
public RestartGameMode()
{
GameModeExit();
return 1;
}
|
Originally Posted by ĸнelιғaтι
damnit why dont you use /rcon gmx?
|
|
Originally Posted by еddy
Quote:
|
! i tried putting in my other FS but it doesnt work
help plz?