Quote:
Originally Posted by newbienoob
Here
pawn Код:
new cp; //at the top of your script cp = CreateDynamicCP(1520.9996,-1474.4762,9.5000,5,_,_,_,300); //under OnGameModeInit()
public OnPlayerEnterDynamicCP(playerid,checkpointid)//Create a new callback in your script. { if(checkpointid == cp) { 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; }
You need streamer plugin(****** it!)
|
I want it to be like when you do /repair, it will set the red marker and say that you can only use /repair there... Anyone please