new stuntpark, cpstunt;
stuntpark = GangZoneCreate(-1532,793,-1484,660);
cpstunt = CPS_AddCheckpoint(-1510.2109,716.5993,7.1875, 4.0,90);
GangZoneShowForPlayer(playerid, stuntpark, 0xFFFFFFAA);
if(CPS_IsPlayerInCheckpoint(playerid,cpstunt))
{
new striing[204], org[104];
if(PlayerInfo[playerid][Boys] >= 1) { org = "os Da Nang Boys"; }
if(PlayerInfo[playerid][Triads] >= 1) { org = "os Triads"; }
if(PlayerInfo[playerid][FBI] >= 1) { org = "o FBI"; }
if(PlayerInfo[playerid][SWAT] >= 1) { org = "a SWAT"; }
if(PlayerInfo[playerid][Rifa] >= 1) { org = "os SF Rifa's"; }
if(PlayerInfo[playerid][Mafia] >= 1) { org = "a Mafia"; }
format(striing, sizeof(striing),"[GZ.INFO]O %s e %s estгo tentando dominar o Stunt Park | Local: /gps",Nome(playerid), org);
SendClientMessageToAll(GetPlayerColor(playerid), striing);
GangZoneFlashForAll(stuntpark, GetPlayerColor(playerid));
GameTextForPlayer(playerid, "~w~Aguarde ~b~15~w~seg", 3000, 1);
SetTimer("Dominado", 15000, false);
}
forward dominado(playerid);
public dominado(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid,cpstunt))
{
new striing[204], org[104];
if(PlayerInfo[playerid][Boys] >= 1) { org = "os Da Nang Boys"; }
if(PlayerInfo[playerid][Triads] >= 1) { org = "os Triads"; }
if(PlayerInfo[playerid][FBI] >= 1) { org = "o FBI"; }
if(PlayerInfo[playerid][SWAT] >= 1) { org = "a SWAT"; }
if(PlayerInfo[playerid][Rifa] >= 1) { org = "os SF Rifa's"; }
if(PlayerInfo[playerid][Mafia] >= 1) { org = "a Mafia"; }
format(striing, sizeof(striing),"[GZ.INFO]O %s e %s dominaram o Stunt Park | Local: /gps",Nome(playerid), org);
SendClientMessageToAll(GetPlayerColor(playerid), striing);
GangZoneStopFlashForAll(stuntpark);
}
return true;
}
nгo sei se й o caso, mas vc no settimer colocou "dominado" e na callback "Dominado" com um D maiъsculo, as vezes tem alguma diferenзa!
|