Please help me
#1

I need Vehicle command code /vehicle command in dcmd
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=395711

https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=187229
https://sampforum.blast.hk/showthread.php?tid=395711
Reply
#4

Here, if you use sscanf.
pawn Код:
dcmd_vehicle(playerid, params[])
{
    new vehicleid;
    if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /vehicle (vehicleid)");
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new pCar = CreateVehicle(vehicleid, x, y, z, a, -1, -1, 10000 * 15);
    PutPlayerInVehicle(playerid, pCar, 0);
    // SendClientMessage(playerid, 0x0073FFFF, "You have spawned a vehicle.");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)