SA-MP Forums Archive
Scores = money - 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)
+--- Thread: Scores = money (/showthread.php?tid=450346)



Scores = money - Abanob - 12.07.2013

I need scores = money i have .. for ex . i have $1000 in my money so i must have 1000 score
and i also need 5000 score when any play enter .. i need amx file and pwn file cuz my pawno dont work anymore . thanks


Re: Scores = money - ReVo_ - 12.07.2013

Код:
stock _GivePlayerMoney(playerid, money) 
{
GivePlayerMoney (playerid, money);
SetPlayerScore (playerid, money);
return true;
}

#define GivePlayerMoney _GivePlayerMoney



Re: Scores = money - Darnell - 12.07.2013

http://www.mediafire.com/download/rn...3/Untitled.amx
Put it in your 'filterscripts' folder.
In server.cfg add it to the fliterscripts line e.g
Quote:

filterscripts Untitled

EDIT:
Quote:
Originally Posted by ReVo_
Посмотреть сообщение
Код:
stock _GivePlayerMoney(playerid, money) 
{
GivePlayerMoney (playerid, money);
SetPlayerScore (playerid, money);
return true;
}

#define GivePlayerMoney _GivePlayerMoney
You got it wrong.
He wants that his money will be equal to his score. Like LVDM.


Re: Scores = money - Chris1337 - 12.07.2013

PHP код:
public OnPlayerUpdate(playerid)
{
   
SetPlayerScore(playeridGetPlayerMoney(playerid));