Command Problem
#1

Код:
COMMAND:car(playerid, params[])
{
    if(PlayerAdmin[playerid] < 4) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command!");
    {
        new Float:Position[3];
        GetPlayerPos(playerid, Float:Position[0], Float:Position[1], Float:Position[2]);
        CreateVehicle(411, Float:Position[0]+3, Float:Position[1]+3, Float:Position[2], 0, 0, 0, 9999);
        return 1;
    }
}
How to make a Command that remove the Car?
Reply
#2

https://sampwiki.blast.hk/wiki/DestroyVehicle
Reply
#3

But how can i make that with DestroyVehicle with ZCMD and sscanf?
Reply
#4

pawn Код:
CMD:dcar(playerid, params[])
{
    new veh;
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You must be in a vehicle to use this command.");
    veh = GetPlayerVehicleID(playerid);
    DestroyVehicle(veh);
    return 1;
}
Very simple one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)