[Ajuda] Coisa Simples que n consigo faser
#2

PHP код:
if(strcmp(cmdtext"/barreiragangue"true)==|| strcmp(cmdtext"/gangbr"true)==0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 24 || org == 25 || org == 27)
        {
        if(
PlayerPaintballing[playerid] != 0)
        {
               
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode por Blockeios no evento!");
               return 
1;
        }
        new 
Float:XFloat:YFloat:ZFloat:A;
        
GetPlayerPos(playeridXYZ);
        
GetPlayerFacingAngle(playeridA);
        
pRoadgang[playerid] = F_CreateObject(845X+1YZ0.00.0A+180300.0);
        
pRoadgang2[playerid] = F_CreateObject(1358X+2YZ0.00.0A+180300.0);
        
pRoadgang3[playerid] = F_CreateObject(18451XY+5Z0.00.0A+180300.0);
        
pRoadgang4[playerid] = F_CreateObject(12957XY+9Z0.00.0A+180300.0);
        
SetPlayerPos(playeridXYZ+4);
        
GameTextForPlayer(playerid"~w~Blockeio ~r~Criado"50005);
        
SendClientMessage(playeridCOLOR_GREEN"Blockeio Posto Use /gangrbr Para Retira-la!");
        
format(stringsizeof(string), "[Gangster]: %s Coloco Um Blockeio De Gangue."PlayerName(playerid));
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    
SendClientMessage(iCOR_GROstring);
                    if (
PlayerInfo[i][pCargo] >= || PlayerInfo[i][pLider] > 0)
                    {
                        
//SendClientMessage(i, TEAM_BLUE_COLOR, "Vocк pode remover todas as barreiras usando /rbrgangall");
                    
}
                 }
               }
            }
        }
        return 
1;
    }
    if(
strcmp(cmdtext"/removerbarreira"true)==|| strcmp(cmdtext"/gangrbr"true)==0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
        {
        if (
pRoadgang[playerid] != 0)
        {
            
RemoveRoadgang(playerid);
            
SendClientMessage(playeridCOLOR_GREY"Vocк Tirou os Blockeios!");
        }
        else { return 
SendClientMessage(playeridCOLOR_GREY"Vocк nгo criou um Blockeios!"); }
        
format(stringsizeof(string), "[Gangster]: %s Retirou Teu Blockeio De Gangue."PlayerName(playerid));
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    
SendClientMessage(iCOR_GROstring);
                }
              }
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
Coisa Simples que n consigo faser - by felipe_mr - 08.10.2012, 00:15
Re: Coisa Simples que n consigo faser - by Delete_ - 08.10.2012, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)