06.06.2012, 17:30
pawn Код:
if(strcmp(cmdtext, "/tune", true) == 0) {
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)) {
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
return ModCar(playerid);
}
else {
return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
}
return 1;
}