01.03.2012, 19:40
Tente ae!
pawn Код:
new Float:GmrX[MAX_PLAYERS], Float:GmrY[MAX_PLAYERS], Float:GmrZ[MAX_PLAYERS], DadoGmr[MAX_PLAYERS];//Topo GM
dcmd_gmr(playerid, params[])
{
#pragma unused params
if(Player[playerid][pAdmin] <7)
return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");
for(new i=0; i<MAX_PLAYERS;i++)
{
WantedPoints[i] = 0;
PlayerTied[i] = 0;
Player[i][pCrimes2] = 0;
DadoGmr[i] = 1;
GetPlayerPos(i, GmrX[i], GmrY[i], GmrZ[i]);
}
Writelog("Backup", "\n----Backup Iniciado----");
GameTextForAll("~g~Rei~y~nic~b~iand~w~do ~w~Se~b~rv~y~id~g~or", 13000,0);
UpdatePlayerPosition();
GameModeExit();
return 1;
}
//SetPlayerSpawn
if(DadoGmr[playerid] == 1)
{
SafeSetPlayerPos(playerid, GmrX[playerid], GmrY[playerid], GmrZ[playerid]);
DadoGmr[playerid] = 0;
return 1;
}