06.03.2011, 13:15
pawn Код:
if(strcmp(cmd, "/rvehicle", true) == 0)
{
new string[128], vehicleid;
tmp = strtok(cmdtext, idx);
vehicleid = strval(tmp);
if(strlen(tmp))
{
if(IsNumeric(tmp))
{
DestroyVehicle(vehicleid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "Invalid vehicle ID.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "Type: /rvehicle [vehicleid]");
return 1;
}
}