[AJUDA]Escudo
#3

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp("/escudo",cmdtext,true) == 0)
    {
        if(!
IsPlayerInAnyVehicle(playerid))
        {
            if(
GetPVarInt("Escudo") == 0)
            {
                
SetPlayerAttachedObject(playerid,2,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
                
SendClientMessage(playerid,0xFFFFFFAA," Vocк colocou o escudo !");
                
SetPVarInt(playerid,"Escudo","1");
                return 
1;
            }
            else
            {
                
RemovePlayerAttachedObject(playerid,2);
                
SendClientMessage(playerid,0xFFFFFFAA," Vocк retirou o escudo !");
                
SetPVarInt(playerid,"Escudo","0");
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playerid, -1"  Vocк nгo pode usar este comando em um veiculo !");
            return 
1;
        }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
[AJUDA]Escudo - by Joao_VS - 30.05.2011, 20:52
Re: [AJUDA]Escudo - by Delete_ - 30.05.2011, 21:30
Re: [AJUDA]Escudo - by Shadoww5 - 30.05.2011, 21:52
Re: [AJUDA]Escudo - by Joao_VS - 31.05.2011, 15:15
Re: [AJUDA]Escudo - by ApolloRJ - 31.05.2011, 15:34
Re: [AJUDA]Escudo - by Joao_VS - 01.06.2011, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)