12.11.2010, 22:28
(
Последний раз редактировалось unforgiving; 21.11.2010 в 13:43.
)
remove this too
public OnPlayerEnterCheckpoint(playerid)
{
new MoneyT;
MoneyT = SetTimer("Every1Second",1000,true);
if(!IsPlayerInAnyVehicle(playerid)) {
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 1);
return 1;
}
forward Every1Second(playerid);
public Every1Second(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) {
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 1);
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
KillTimer(MoneyT);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, RANGE, x , y, z)//swap range for the size of the checkpoint and x, y, z for the coordinates of the checkpoint
{
new MoneyT;
MoneyT = SetTimer("Every1Second",1000,true);
if(!IsPlayerInAnyVehicle(playerid)) {
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 1);
}
return 1;
}