31.10.2012, 16:22
pawn Код:
// No topo do gamemode junto com as outras new e forward
new guerra;
forward guerrat();
// de ctrl + f e Escreve Public OnCommandText e dentro dela vocк ponha esse comando
if(strcmp(cmd,"/guerra", true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerra = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerra,COR);
SetTimer("guerrat",60000,1);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[NOTICIA DE ULTIMA HORA] O General %s e o Exйrcito acabam de iniciar uma guerra!!", pName);
SendClientMessageToAll(COR, string);
return 1;
}
// e no final do GameMode fora de tudo vocк ponha isso
public guerrat()
{
GangZoneDestroy(guerra);
GangZoneHideForAll(guerra);
return 1;
}

