09.06.2012, 01:20
pawn Код:
CMD:gmx(playerid, params[])
{
SendRconCommand("gmx");
DOF2_SaveFile();
return 1;
}
CMD:gmx(playerid, params[])
{
SendRconCommand("gmx");
DOF2_SaveFile();
return 1;
}
CMD:gmx(playerid, params[])
{
DOF2_SaveFile();
SendRconCommand("gmx");
return 1;
}
CMD:gmx(playerid, params[])
{
DOF2_SaveFile();
SetTimer("TimerGmx", 5000, false);
return 1;
}
public TimerGmx()
{
SendRconCommand("gmx");
}
forward GameModeInitExitFunc();
CMD:gmx (playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdminBPC] <= 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para acessar estб бrea!");
return 1;
}
if(modoadmin[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб em modo de trabalho!");
return 1;
}
GameModeInitExitFunc();
}
public GameModeInitExitFunc()
{
new string[128];
SendClientMessageToAll(COLOR_DBLUE, "{FFFFFF}[{A83B3C}PROGRAMADOR{FFFFFF}]: Isto й um {D90B0E}GMX{FFFFFF} nгo saia do servidor.");
format(string, sizeof(string), "Atualizando...");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
DisablePlayerCheckpoint(i);
gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
GameTextForPlayer(i, string, 4000, 5);
SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
gPlayerLogged[i] = 0;
}
}
SetTimer("GameModeExitFunc", 4000, 0);
return 1;
}
public GameModeExitFunc()
{
KillTimer(weaponhacktimer);
KillTimer(TempoAnGang);
KillTimer(TempoAnFarc);
KillTimer(TempoAnTaxi);
KillTimer(TempoAnHitmans);
KillTimer(TempoAnMedicos);
KillTimer(synctimer);
KillTimer(newmistimer);
KillTimer(unjailtimer);
KillTimer(othtimer);
KillTimer(cartimer);
KillTimer(accountstimer);
KillTimer(checkgastimer);
KillTimer(idletimer);
KillTimer(pickuptimer);
KillTimer(productiontimer);
KillTimer(spectatetimer);
KillTimer(stoppedvehtimer);
KillTimer(tempoGranaTR);
GameModeExit();
}