SA-MP Forums Archive
Pawno [ HELP ] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno [ HELP ] (/showthread.php?tid=271844)



Pawno [ HELP ] - DragonYancy - 26.07.2011

I am doing a banking system named DYBank. I want to give some money )wich is part of the players) to players each 10 minutes. I did a timer. But now I need to get players' money's 100/2. How can I?


Re: Pawno [ HELP ] - Rolyy - 26.07.2011

Quote:
Originally Posted by DragonYancy
Посмотреть сообщение
I am doing a banking system named DYBank. I want to give some money )wich is part of the players) to players each 10 minutes. I did a timer. But now I need to get players' money's 100/2. How can I?
I know how to fix this but are you experienced with variables? Maybe you don't need my help at all.

This is what you will be needing:
pawn Код:
BankTimer[MAX_PLAYERS];

BankTimer[playerid] = 0;

BankTimer[playerid] = 1;

if(BankTimer[playerid] == 0)
{
}
If you don't figure it out then I can help you with it.


Re: Pawno [ HELP ] - DRIFT_HUNTER - 26.07.2011

new money = GetPlayerMoney(playerid);

Thats what you want?


Re: Pawno [ HELP ] - DragonYancy - 26.07.2011

No I mean I want to take 100/2 of player's money just this...


Re: Pawno [ HELP ] - DragonYancy - 26.07.2011

No-one helps?