SA-MP Forums Archive
Startmoney. - 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: Startmoney. (/showthread.php?tid=448864)



Startmoney. - Hardy1995 - 06.07.2013

Hey guys, please tell me, Where can replace startmoney?
I can not find exactly where you want to change!


Re: Startmoney. - Income - 06.07.2013

We cannot help you without a snippet of the code...


Re: Startmoney. - GODEX - 06.07.2013

1. Open Pawno.exe
2. Click CTR-F
3. Type 'giveplayermoney'

If nothing shows up you havent given a player money

If you are running a ZCMD include code a command to add would be this

Код:
CMD:startmon(playerid, params[])
{
       giveplayermoney(playerid, AMMOUNT);
       return 1;
}



Re: Startmoney. - SwisherSweet - 06.07.2013

giveplayemoney whould not work
GivePlayerMoney whould workd see the differance GODEX


Re: Startmoney. - GODEX - 06.07.2013

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
giveplayemoney whould not work
GivePlayerMoney whould workd see the differance GODEX
I know, Only reason i couldnt be fucked to correct it was im to tired to. He couldve figured it out anyway


Re: Startmoney. - SwisherSweet - 06.07.2013

Hes a person that does not even know howto find giveplayermoney on his script how will he know the function itself anyways whatever. Anyways goto sleep if your tired...


Re: Startmoney. - Hardy1995 - 06.07.2013

I Found code, But here not numbers.
Код:
stock SetMoney(playerid, amount)
{
    PlayerInfo[playerid][pCash] = amount;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, amount);
}



Re: Startmoney. - Income - 06.07.2013

Quote:
Originally Posted by Hardy1995
Посмотреть сообщение
I Found code, But here not numbers.
Код:
stock SetMoney(playerid, amount)
{
    PlayerInfo[playerid][pCash] = amount;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, amount);
}
I can't see any "startmoney" here.


Re: Startmoney. - iggy1 - 06.07.2013

If you mean the money the player gets when they spawn, then look under OnPlayerSpawn for your "SetMoney" function or the SetPlayerMoney function.

"Where can replace startmoney?" Every mode is different we cannot tell you where you can find stuff in your own mode.


Re: Startmoney. - BlueQuiq - 06.07.2013

in public OnPlayerSpawn you have code:
PHP код:
GivePlayerMoney(playerid,Money); 
?
If you found then change the amount it says you where I wrote "Money."