[HELP] PlayerSpawn -$100 Anoying Bug! - 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: [HELP] PlayerSpawn -$100 Anoying Bug! (
/showthread.php?tid=100043)
[HELP] PlayerSpawn -$100 Anoying Bug! -
viKKmaN - 02.10.2009
Hy. I have checked my code hundreds of times trying to figure out why my players might loose $100 everytime they die/spawn.
I searched everywhere and i couldn't find anything related to GetPlayerMoney/SetPlayerMoney/ResetPlayerMoney.
So i am asking if there is some kind of auto-configured loss of money when dying.
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
dice7 - 02.10.2009
The command is GivePlayerMoney
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
(Jeff) - 02.10.2009
lol dice7 u fail this is like in single player just do onplayerdeath or onplayerspawn:
Code:
public OnPlayerDeath(playerid,killerid);
{
GetPlayerMoney(playerid, +100)// somthing liek that :X havent scripted in a while xD
}
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
dice7 - 02.10.2009
I was telling him the correct function to search, since he was searching for GetPlayerMoney/SetPlayerMoney/ResetPlayerMoney. Your logic is void
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
viKKmaN - 02.10.2009
Woah, thank you, DAMN DEVS could atleast have told us that default onplayerdeath function substracts $100 from player's cash
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
BlackFoX - 02.10.2009
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 100);
or
GivePlayerMoney(playerid,100);
thats so hard omg xD
Re: [HELP] PlayerSpawn -$100 Anoying Bug! -
viKKmaN - 02.10.2009
Quote:
Originally Posted by BlackFoX
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 100);
or
GivePlayerMoney(playerid,100);
thats so hard omg xD
|
No it's not, but because i did not know about that issue i lost 1 hour lookin thru' my script trying to find out w** i did wrong.