06.03.2011, 14:19
Quote:
|
You need to use U for player IDs and NOT vehicle IDs. Replace 'u' with 'd' and remove the 'else {' and '}' as the sscanf client message return will dismiss the command if the parameters aren't right.
|
pawn Код:
dcmd_rvehicle(playerid, params[])
{
if(IsPlayerAdmin(playerid)|| PlayerData[playerid][AdminLevel] > 3)
{
new string[128], vehicleid;
if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, COLOR_USAGE, "USAGE: /rvehicle (id)");
{
format(string, sizeof(string), "You removed vehicle nr.%d", vehicleid);
SendClientMessage(playerid, COLOR_INFO, string);
DestroyVehicle(vehicleid);
return 1;
}
}
return 0;
}

