[Ajuda] Bloquear id de veiculos
#5

Quote:
Originally Posted by Lуs
Посмотреть сообщение
PHP код:
CMD:car(playeridparams[])
{
    
GetPlayerHealth(playeridVida);
    
    new 
s;
    
    if(
IsNumeric(params[0])) {
        if(
Vida 40.0)
            return 
SendClientMessage(playeridVermelho"[Info]: You can not use this Command With Low Life !");
            
        if(
GetPlayerInterior(playerid) != 0)
            return 
SendClientMessage(playeridVermelho"[Error]: You can not use Commands in an Interior !");
    
        if(
Duel[playerid] >=1)
            return 
SendClientMessage(playeridVermelho,"[Error]: You can Not use Commands if you are in a Duel !");
        
        if(
IsPlayerInAnyVehicle(playerid))
            return 
SendClientMessage(playeridVermelho"[Info]: You are Already in a Vehicle !");
        
        if(
sscanf(params"i"s))
            return 
SendClientMessage(playeridAmarelo"Use: /Car [Name/Model ID]");
        
        if(
400 ||611)
            return 
SendClientMessage(playeridVermelho"[Info]: Model ID Invalid, Use: /Car [Model ID 400-611]");
        
        if(
== 425 || == 432 || == 447 || == 520)
            return 
SendClientMessage(playeridVermelho"[Info]: Restricted Vehicle !");
        
        
CreateVehicleEx(playerids);
        return 
1;
    } else {
        new 
vehName[30];
    
        if(
sscanf(params"s[30]"vehName))
            return 
SendClientMessage(playeridAmarelo"Use: /Car [Name/Model ID]");
    
        
GetModelVehicle(vehName);
        
        if(
400 || 611)
            return 
SendClientMessage(playeridVermelho"[Info]: Name Invalid, Use: /Car [Name Correct]");
    
        if(
== 425 || == 432 || == 447 || == 520)
            return 
SendClientMessage(playeridVermelho"[Info]: Restricted Vehicle !");
        
        
CreateVehicleEx(playerids);
        return 
1;
    }
    
    return 
1;

Muito obrigado ! + rep
Reply


Messages In This Thread
Bloquear id de veiculos - by Patrick141 - 23.03.2015, 21:25
Re: Bloquear id de veiculos - by arakuta - 23.03.2015, 21:34
Re: Bloquear id de veiculos - by Patrick141 - 23.03.2015, 21:59
Re: Bloquear id de veiculos - by Lуs - 23.03.2015, 22:02
Re: Bloquear id de veiculos - by Patrick141 - 23.03.2015, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)