Help please - 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 please (
/showthread.php?tid=248963)
Help please -
IvancheBG - 16.04.2011
Hi whe someone kill me i dont have money but i want when kill somebody to have all money of the player.
Re: Help please -
Alby Fire - 16.04.2011
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid)) {
new
val = GetPlayerMoney(playerid);
GivePlayerMoney(killerid, val);
ResetPlayerMoney(playerid);
}
return 1;
}