[Ajuda] Comando criar veiculo.
#3

Tenta

PHP код:
    if(strcmp(cmd"/v"true) == 0)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playerid, -1"Vocк nгo pode estб em um veiculo");
            return 
1;
        }
        new 
IDCarC1C2;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid, -1"Veнculo Invбlido.");
            return 
1;
        }
        
IDCar strval(tmp);
        
tmp strtok(cmdtextidx);
         if(!
strlen(tmp))
        {
              
SendClientMessage(playerid, -1"Use: /Cv [ID] [Cor 1] [Cor 2]");
               return 
1;
        }
        
C1 strval(tmp);
        
tmp strtok(cmdtextidx);
         if(!
strlen(tmp))
        {
              
SendClientMessage(playerid, -1"Use: /Cv [ID] [Cor 1] [Cor 2]");
               return 
1;
        }
        
C2 strval(tmp);
        if(
IDCar >= 400 && IDCar <= 611)
        {
            new
                
v,
                
Float:P[4];
            
GetPlayerPos(playeridP[0], P[1], P[2]);
            
GetPlayerFacingAngle(playeridP[3]);
            
CreateVehicle(IDCarP[0], P[1], P[2]+1P[3], C1C20);
            
PutPlayerInVehicle(playeridv0);
            
SendClientMessage(playeridVerde"- >  Veнculo criado.");
        }
        return 
1;
    } 
Reply


Messages In This Thread
Comando criar veiculo. - by DenilsonN - 18.01.2016, 02:05
Re: Comando criar veiculo. - by iSoaD - 18.01.2016, 02:21
Re: Comando criar veiculo. - by Jimmmy - 18.01.2016, 04:29
Re: Comando criar veiculo. - by Maklister - 18.01.2016, 12:53
Re: Comando criar veiculo. - by [BOPE]Seu._.Madruga - 18.01.2016, 22:50
Re: Comando criar veiculo. - by DenilsonN - 19.01.2016, 00:22
Re: Comando criar veiculo. - by Jimmmy - 19.01.2016, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)