[Ajuda] Gang Zones
#1

Salve mulecada, arrumei outro jeito de fazer as gangzones mas ele ta dando o flash e nunca domina, vou separar uma gangzone para vcs verem, tem como analisar e ver o erro por favor? desde ja grato!

TOPO DO GM:
pawn Код:
new stuntpark, cpstunt;
ONGAMEMODEINIT
pawn Код:
stuntpark  = GangZoneCreate(-1532,793,-1484,660);
cpstunt    = CPS_AddCheckpoint(-1510.2109,716.5993,7.1875,  4.0,90);
ONPLAYERSPAWN
pawn Код:
GangZoneShowForPlayer(playerid, stuntpark, 0xFFFFFFAA);
ONPLAYERENTERCHECKPOINT
pawn Код:
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);
    }
TIMER DOMINADO:
pawn Код:
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;
}
OBS. TODAS AS GANGZONES UTILIZAM O MESMO TIMER, O "DOMINADO", MAS PARA SIMPLIFICAR POSTEI SУ DE UMA
Reply


Messages In This Thread
Gang Zones - by Jumper. - 14.02.2013, 16:45
Re: Gang Zones - by SampSampa - 14.02.2013, 17:08
Re: Gang Zones - by Jumper. - 14.02.2013, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)