OnPlayerDeath
#1

Hi guys, when I kill someone in my server, i become $5000 and lost the $5000 in the same time.

My code:

Код:
        SendDeathMessage(killerid,playerid,reason);
	SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
	GivePlayerMoney(killerid,5000);
  	GameTextForPlayer(killerid,"~g~+$5000",5000,1);
	SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
	GivePlayerMoney(playerid, -2000);
	GameTextForPlayer(playerid,"~r~-$2000",5000,1);
Reply
#2

I don't understand what you want to say. What do you want to give you when you kill someone ?
Reply
#3

No, I mean when u kill someone, u become $5000 but after 1second u will lose the $5000
Reply
#4

Do you have money anty-cheat code in you script ?
Reply
#5

yes i have!
Reply
#6

most likely the problem is the anticheat since it doesnt support GivePlayerMoney, try searching similar callbacks to GivePlayerMoney and are supported by the anticheat in your gamemode
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)