is this right ? plz help - 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: is this right ? plz help (
/showthread.php?tid=317128)
is this right ? plz help -
andrewgrob - 10.02.2012
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 10000);
GivePlayerWeapon(killerid, 16, 2);
SendClientMessage(killerid, 0xFF0000AA, "You Get 10,000 Cash & 2 Grenades");
}
will it give the killer 10,000 cash and 2 grenades.
its because i carnt test it without another player
thank you people
Re: is this right ? plz help -
[ABK]Antonio - 10.02.2012
yes it will
Re: is this right ? plz help -
Chrillzen - 10.02.2012
Use my killingspree script
Re: is this right ? plz help -
andrewgrob - 11.02.2012
thank you people