09.03.2016, 17:54
pawn Код:
CMD:getinveh(playerid,params[])
{
new id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, -1,"Usage: /getinveh [ID]");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"Error:You must be in car to use this command!");
if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, -1,"Error:This player is in car, You can't use this command!");
PutPlayerInVehicle(id, GetPlayerVehicleID(playerid), 1);
}
return 1;
}