[Please Help]GetPlayerMoney
#4

Oh, save their score before they teleport, and check the different afterwards.

pawn Код:
OldCash[playerid] = GetPlayerCash(playerid)
Put that where they teleport

NewCash[playerid] = GetPlayerCash(playerid)
Put that after they've done it all
Then do whatever checks you want to do with NewCash & OldCash
Is that what you wanted?

EDIT:
pawn Код:
new OldCash[MAX_PLAYERS],NewCash[MAX_PLAYERS]
Put that at top of scriprt

EDIT2:
To activate it, when he teleports, run a timer, or something, and to disable it again, KillTimer();
Reply


Messages In This Thread
[Please Help]GetPlayerMoney - by AiVAMAN - 25.04.2009, 13:44
Re: [Please Help]GetPlayerMoney - by Redirect Left - 25.04.2009, 13:45
Re: [Please Help]GetPlayerMoney - by AiVAMAN - 25.04.2009, 13:54
Re: [Please Help]GetPlayerMoney - by Redirect Left - 25.04.2009, 14:00
Re: [Please Help]GetPlayerMoney - by AiVAMAN - 25.04.2009, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)