19.07.2012, 17:02
Here
You need streamer plugin(****** it!)
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;
}

