13.11.2010, 00:18
Not tested
pawn Код:
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;
}