14.07.2010, 04:58
pawn Код:
if(strcmp(cmd, "/carid", true) == 0) {
if(!IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid, red, "You need to be in a car to use this command.");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
new string[128];
format(string, sizeof(string), "Your car id is %d", vehicleid);
SendClientMessage(playerid, yellow, string);
return 1;
}