how to get 10% money from playerid - 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: how to get 10% money from playerid (
/showthread.php?tid=265949)
how to get 10% money from playerid -
handerson - 03.07.2011
i want, killerid will get 10% money from playerid.,,,
how pls tell me
Quote:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid,//10% from playerid);
return 1;
}
|
Re: how to get 10% money from playerid - Deskoft - 03.07.2011
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid,GetPlayerMoney(playerid)/10);
return 1;
}
Re: how to get 10% money from playerid -
handerson - 03.07.2011
thank u