SA-MP Forums Archive
Please help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please help me (/showthread.php?tid=396588)



Please help me - Morkano - 01.12.2012

I need Vehicle command code /vehicle command in dcmd


Re: Please help me - InfiniTy. - 01.12.2012

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

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


Re: Please help me - doreto - 01.12.2012

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


AW: Please help me - Skimmer - 01.12.2012

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;
}