SA-MP Forums Archive
How to make players 4 trillion without negative money. Thank you - 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: How to make players 4 trillion without negative money. Thank you (/showthread.php?tid=655570)



How to make players 4 trillion without negative money. Thank you - nguyendinhdat - 24.06.2018

How to make players 4 trillion without negative money. Thank you


Re: How to make players 4 trillion without negative money. Thank you - Slawi - 24.06.2018

hello,
there are a lot of methods according to your script

Here a method

PHP код:
public OnPlayerUpdate(playerid)
{
    new 
pname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof panme);// here get the playername for playerid
    
if(!strfind(pname"Player Username 1"true)// here check if playername = the trillion playername
        
GivePlayerMoney(playeridmoney); // here give him his money replace money with the number that you want to give
    
if(!strfind(pname"Player Username 2"true)
        
GivePlayerMoney(playeridmoney);
    if(!
strfind(pname"Player Username 3"true)
        
GivePlayerMoney(playeridmoney);
    if(!
strfind(pname"Player Username 4"true)
        
GivePlayerMoney(playeridmoney);
    return 
true;




Re: How to make players 4 trillion without negative money. Thank you - nguyendinhdat - 24.06.2018

I need you help about Usinged Long 61 Bit for example 1 code
https://sampforum.blast.hk/showthread.php?tid=598933


Re: How to make players 4 trillion without negative money. Thank you - GTLS - 24.06.2018

You can only display default value on GTA SA Hud icons. What you can do is, create your own TextDraw with what ever number of limit you want and then you can set the string to any number. 4 Trillions or 9 Trillions. (Make sure length is enough).


Re: How to make players 4 trillion without negative money. Thank you - Lokii - 24.06.2018

The max you can is 999,999,999 going higher will give values like 14002884


Re: How to make players 4 trillion without negative money. Thank you - DerickClark - 24.06.2018

Maybe have a bank system. To store some of the money.