SA-MP Forums Archive
please help me to create an money earn onplayerdeath - 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: please help me to create an money earn onplayerdeath (/showthread.php?tid=247658)



please help me to create an money earn onplayerdeath - leingod - 10.04.2011

how i can make a script like this?? :

if i killed a player... i will get 40% from he's money

like if he's have 10.000$
i killed him.. then i will got 4.000$

please guys .. show me how


Re: please help me to create an money earn onplayerdeath - iMonk3y - 10.04.2011

This should work:

pawn Код:
GivePlayerMoney( killerid, GetPlayerMoney( playerid ) * 0.4 );



Re: please help me to create an money earn onplayerdeath - leingod - 10.04.2011

well i think its made some warnings
like this

Код:
C:\Users\AS4732Z\Desktop\SAMP Server\LSGW~RP\gamemodes\LSTW2Uv2.pwn(1692) : warning 217: loose indentation
C:\Users\AS4732Z\Desktop\SAMP Server\LSGW~RP\gamemodes\LSTW2Uv2.pwn(1692) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.



Re: please help me to create an money earn onplayerdeath - leingod - 10.04.2011

anyone?? help me pls


Re: please help me to create an money earn onplayerdeath - leingod - 10.04.2011

PLEASE ANY BODY HELP ME !!!!!!!!!!!!!!!!!!!!!


Re: please help me to create an money earn onplayerdeath - aircombat - 10.04.2011

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        GivePlayerMoney( killerid, GetPlayerMoney(playerid) * 4/10);
	 return 1;
}



Re: please help me to create an money earn onplayerdeath - Vince - 10.04.2011

Floatround ..


Re: please help me to create an money earn onplayerdeath - leingod - 11.04.2011

THX guys !!!