19.07.2012, 16:19
This is what I have no with my /repair cmd:
I want to add something special; that you can only do /repair in some red marker at that empty garage near Pershing Square (Some servers use it as VIP garage)

A red marker like that, but that's not the location. How to add it?
Код:
CMD:repair(playerid, params[])
{
RepairVehicle(GetPlayerVehicleID(playerid));
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "You are not in a vehicle!");
SendClientMessage(playerid, COLOR_PURPLE, "You repaired the vehicle");
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, COLOR_YELLOW, "The repair costed you 100 dollars");
PlayerPlaySound(playerid, 1133, 0, 0, 0);
return 1;
}

A red marker like that, but that's not the location. How to add it?


