[Ajuda] Comando /cv bug
#4

PHP код:
if (strcmp(cmd"/criarveiculo"true) == || strcmp(cmd"/cv"true) == 0)
{
    if (
pAdmin[playerid] == || IsPlayerAdmin(playerid))
    {
        new 
plidFloatXFloatY,  FloatZFloatAngle;
        
tmp strtok(cmdtextidx);
        if (!
strlen(tmp)) return SendClientMessage(playeridVermelho"* Use: /Criarveiculo [ID do veiculo]");
        
plid strval(tmp);
        if (
IsPlayerConnected(playerid))
        {
            if (
plid >= 400 && plid <= 611)
            {
                
GetPlayerPos(playeridXYZ);
                
GetPlayerFacingAngle(playeridAngle);
                new 
carro CreateVehicle(plidXYZAngle, -1, -1120000);
                
PutPlayerInVehicle(playeridcarro0);
                if (
GetPlayerInterior(playerid)) LinkVehicleToInterior(carroGetPlayerInterior(playerid));
                
SetVehicleVirtualWorld(carroGetPlayerVirtualWorld(playerid));
                
NaoUsado[carro] = true;
                
format(stringsizeof(string), "| INFO | Veiculo ID '%d' criado com sucesso."plid);
                
SendClientMessage(playeridoutraadmstring);
            }
            else 
SendClientMessage(playeridVermelho"| ERRO | ID invбlido, digite um ID vбlido. ID's permitidos = 400 б 611.");
        }
    }
    return 
1;

Reply


Messages In This Thread
Comando /cv bug - by LeleziiN - 14.07.2015, 23:02
Re: Comando /cv bug - by matheusspohr - 14.07.2015, 23:06
Re: Comando /cv bug - by LeleziiN - 14.07.2015, 23:20
Re: Comando /cv bug - by Pablo098 - 14.07.2015, 23:33
Re: Comando /cv bug - by LeleziiN - 14.07.2015, 23:39
Re: Comando /cv bug - by matheusspohr - 15.07.2015, 01:07
Re: Comando /cv bug - by LeleziiN - 22.07.2015, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)