[HELP] Public onplayerdeath
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

killerid = the one who killed the other player
playerid = the killed one
Reply
#5

No killerid is the killer hence the name, Playerid is the dead guy.
Reply
#6

thanks Both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)