31.05.2012, 08:32
Create a function that will give money, score and new property to player.
For example:
Next
For example:
Code:
forward gangZoneComplete(playerid);
public gangZoneComplete(playerid)
{
GivePlayerMoney(playerid, 5000);
//Up score
//setup zone
DisablePlayerCheckpoint(playerid);
}
Code:
public OnPlayerEnterCheckpoint(playerid)
{
new timerId = setTimerEx("gangZoneComplete", 1000 * 30, false, "i", playerid);
SetPVarInt(playerid, "gangZoneTimer", timerId);
SetPVarInt(playerid, "onGangZone", 1);
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
if (GetPVarInt(playerid, "onGangZone")
KillTimer(GetPVarInt(playerid, "gangZoneTimer"));
DelPVar(playerid, "onGangZone");
DelPVar(playerid, "gangZoneTimer");
}

