[HELP] Public 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)
+--- Thread: [HELP] Public onplayerdeath (
/showthread.php?tid=317248)
[HELP] Public onplayerdeath -
ServerScripter - 10.02.2012
The problem is whene i kill someone as a VIP lvl 3 , it send a message also to the killed player and add privilages to him...
RESOLVED
Re: [HELP] Public onplayerdeath -
[ABK]Antonio - 10.02.2012
SendClientMessage(playerid, COLOR_LIGHTRED, "You are (VIP:Premium) , you win +4score and +4000$ ! ");
You used playerid instead of killerid there
EDIT: also, you used playerid instead of killerid for the conditions, so the only way the killer gets the rewards is if the one they killed is VIP
Re: [HELP] Public onplayerdeath -
ServerScripter - 10.02.2012
oh yes playerid is the player who is killed
thank u ,so i must edite it to killerid is it right ?
oh yes i know i edited the last message xD thank you both
Re: [HELP] Public onplayerdeath -
[ABK]Antonio - 10.02.2012
killerid = the one who killed the other player
playerid = the killed one
Re: [HELP] Public onplayerdeath -
IceCube! - 10.02.2012
No killerid is the killer hence the name, Playerid is the dead guy.
Re: [HELP] Public onplayerdeath -
ServerScripter - 10.02.2012
thanks Both