[Ajuda] Comando /cv
#3

PHP код:
public OnDialogResponse
CMD
:cv(playeridparams[])
{
    new 
cor1cor2;
    
//
       
if(PlayerInfo[playerid][pAdmin] < 1)                        return SendClientMessage(playeridCorErro"Vocк precisa ser uma Administrador level 1 para usar este comando");
    if(
pJogando[playerid] == true)                                 return SendClientMessage(playeridCorErro"Vocк nгo estб trabalhando!");
    if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)          return SendClientMessage(playeridCorErro"Vocк nгo pode criar um carro estando dentro de um.");
    if(
sscanf(params"iii"Numerocor1cor2))                return SendClientMessage(playeridCorErro"USE: /cv [ID] [COR1] [COR2]");
    if(
Numero 400 || Numero 611)                            return SendClientMessage(playeridCorErro"USE IDS entre 400 e 611");
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    if(
GetPlayerInterior(playerid) != 0)
    {
        
ID CreateVehicle(NumeroPos[0], Pos[1], Pos[2], 90cor1cor2, -1);
        
LinkVehicleToInterior(IDGetPlayerInterior(playerid));
    }
    else
    {
        
ID CreateVehicle(NumeroPos[0], Pos[1], Pos[2], 90cor1cor2, -1);
    }
    
PutPlayerInVehicle(playeridID0);
    
FoiCriado[ID] = true;
    return 
1;

Reply


Messages In This Thread
Comando /cv - by paulotuto - 09.12.2014, 22:50
Re: COMANDO /CV - by Whoo - 09.12.2014, 22:52
Re: COMANDO /CV - by xJasonxX - 09.12.2014, 22:56
Re: COMANDO /CV - by FStralioti - 09.12.2014, 22:57
Re: COMANDO /CV - by [BOPE]Seu._.Madruga - 09.12.2014, 23:11
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:43
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:45
Re: COMANDO /CV - by Ts3 - 10.12.2014, 00:55
Re: Comando /cv - by paulotuto - 13.12.2014, 16:28
Respuesta: Comando /cv - by AndreLuiz - 13.12.2014, 18:22
Re: Comando /cv - by paulotuto - 13.12.2014, 18:45
Re: Comando /cv - by Whoo - 13.12.2014, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)