27.12.2011, 20:11
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337)
{
if(admtrampando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string, sizeof(string), "%s Deu GMX!",playername);
ABroadCast(COLOR_YELLOW,string,1);
KillTimer(synctimer);
KillTimer(newmistimer);
KillTimer(unjailtimer);
KillTimer(othtimer);
KillTimer(cartimer);
KillTimer(Contastimer);
KillTimer(checkgastimer);
KillTimer(idletimer);
KillTimer(pickuptimer);
KillTimer(productiontimer);
KillTimer(spectatetimer);
KillTimer(stoppedvehtimer);
KillTimer(turftimer);
KillTimer(weaponhacktimer);
KillTimer(tempoGranaTR);
KillTimer(TempoAdministrador);
KillTimer(TempoAn);
SaveAdmin();
OnPropUpdate();
SaveCK();
SaveIRC();
SavePapers();
SaveBoxer();
SaveCars();
SaveVip();
GameModeExit();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar o comando!");
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337)
{
if(admtrampando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string, sizeof(string), "%s Deu GMX!",playername);
ABroadCast(COLOR_YELLOW,string,1);
KillTimer(synctimer);
KillTimer(newmistimer);
KillTimer(unjailtimer);
KillTimer(othtimer);
KillTimer(cartimer);
KillTimer(Contastimer);
KillTimer(checkgastimer);
KillTimer(idletimer);
KillTimer(pickuptimer);
KillTimer(productiontimer);
KillTimer(spectatetimer);
KillTimer(stoppedvehtimer);
KillTimer(turftimer);
KillTimer(weaponhacktimer);
KillTimer(tempoGranaTR);
KillTimer(TempoAdministrador);
KillTimer(TempoAn);
SaveAdmin();
OnPropUpdate();
SaveCK();
SaveIRC();
SavePapers();
SaveBoxer();
SaveCars();
SaveVip();
GameModeExit();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar o comando!");
}
}
return 1;
}