[Pedido] Conversao para zcmd
#1

gostei deste sistema de criaзao de veiculos porem queria que fosse em zcmd.
alguem poderia converter para mim ?

Comando :
pawn Код:
if(strcmp(cmd, "/car", true, 10) == 0)
    {

        new String[200];
        new tmp[256];
        new Float:x, Float:y, Float:z;

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, l_red, "You diden't give a vehicle name");

        new vehicle = GetVehicleModelIDFromName(tmp);

        if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, l_red, "That vehicle name was not found");

        new Float:a;
        GetPlayerFacingAngle(playerid, a);
        GetPlayerPos(playerid, x, y, z);

        if(IsPlayerInAnyVehicle(playerid) == 1)
        {
            GetXYInFrontOfPlayer(playerid, x, y, 8);
        }
        else
        {
            GetXYInFrontOfPlayer(playerid, x, y, 5);
        }

        new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
        LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));

        format(String, sizeof(String), "You have spawned a %s", aVehicleNames[vehicle - 400]);
        SendClientMessage(playerid, l_green, String);
        return 1;
    }
    return 0;
}
ja tentei converter mas nao deu certo alguem me ajuda ?
Reply


Messages In This Thread
Conversao para zcmd - by zuero - 15.07.2014, 02:29
Re: Conversao para zcmd - by zuero - 15.07.2014, 19:25
Re: Conversao para zcmd - by MultiKill - 15.07.2014, 19:30
Re: Conversao para zcmd - by zuero - 15.07.2014, 20:21
Re: Conversao para zcmd - by MultiKill - 15.07.2014, 20:30
Re: Conversao para zcmd - by zuero - 15.07.2014, 20:50
Re: Conversao para zcmd - by zuero - 15.07.2014, 20:55
Re: Conversao para zcmd - by MultiKill - 15.07.2014, 21:00
Re: Conversao para zcmd - by zuero - 15.07.2014, 21:05
Re: Conversao para zcmd - by zuero - 15.07.2014, 21:08

Forum Jump:


Users browsing this thread: 5 Guest(s)