check point
#3

//untested
pawn Код:
//top of script
new moneytimer[MAX_PLAYERS];
forward GiveMoney(playerid);

public OnPlayerEnterCheckpoint(playerid)
{
  moneytimer[playerid] = SetTimerEx("GiveMoney", 1000, 1, "i", playerid);
  return 1;
}

public OnPlayerExitCheckpoint(playerid)
{
  KillTimer(moneytimer[playerid);
  return 1;

public OnPlayerSpawn(playerid)
{
  SetPlayerCheckpoint(playerid, X, Y, Z, radi);
  return 1;
}

public GiveMoney(playerid)
{
  SetPlayerMoney(playerid, GetPlayerMoney(playerid)+1000);
  return 1;
}
Reply


Messages In This Thread
check point - by sggassasin - 26.06.2009, 03:42
Re: check point - by Yoyoyo - 26.06.2009, 03:45
Re: check point - by Grim_ - 26.06.2009, 03:50
Re: check point - by sggassasin - 26.06.2009, 04:11
Re: check point - by Grim_ - 26.06.2009, 04:13
Re: check point - by sggassasin - 26.06.2009, 04:48
Re: check point - by sggassasin - 26.06.2009, 04:51
Re: check point - by sggassasin - 26.06.2009, 04:52
Re: check point - by Martins342 - 26.06.2009, 04:54
Re: check point - by sggassasin - 26.06.2009, 04:56

Forum Jump:


Users browsing this thread: 1 Guest(s)