[AJUDA]ResetPlayerWeapons, Favela!
#4

Mano atй modifiquei teu CODE, Fico assim.

Stock
PHP код:
stock IsPlayerInFavela(playerid)
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    if(
>= 2117.333 && >= -1069.962 && <= 2261.841 && <= -959.4252) return 1;
    else return 
0;

PHP код:
public CheckFavela(playerid)
{
    for(new 
i,GetMaxPlayers(); i!=ji++)
    {
        if(
IsPlayerConnected(i))
        {
            
//======================= Favela ==========================
            
if(IsPlayerInFavela(playerid))
            {
                    
GangZoneFlashForAll(favela,0xFFFFFFAA);
                    
GameTextForPlayer(i,"DM Liberado",1000,1);
                    
GivePlayerWeapon(i24999);
                    
GivePlayerWeapon(i91);
                    
GivePlayerWeapon(i25999);
                    
GivePlayerWeapon(i26999);
                    
GivePlayerWeapon(i30999);
                    
GivePlayerWeapon(i32999);
            }
            else
            {
                    
DMLiberado2[i] = 0;
                    
GangZoneStopFlashForAll(favela);
                    
ResetPlayerWeapons(playerid);
            }
        }
    }
    return 
1;

E Nгo deu certo ¬.¬'
Reply


Messages In This Thread
[AJUDA]ResetPlayerWeapons, Favela! - by RedBulL_x - 11.12.2011, 23:33
Re: [AJUDA]ResetPlayerWeapons, Favela! - by ViniBorn - 11.12.2011, 23:42
Re: [AJUDA]ResetPlayerWeapons, Favela! - by Macintosh - 11.12.2011, 23:47
Re: [AJUDA]ResetPlayerWeapons, Favela! - by RedBulL_x - 12.12.2011, 00:29
Re: [AJUDA]ResetPlayerWeapons, Favela! - by ViniBorn - 12.12.2011, 00:35
Re: [AJUDA]ResetPlayerWeapons, Favela! - by RedBulL_x - 12.12.2011, 00:47

Forum Jump:


Users browsing this thread: 1 Guest(s)