27.08.2011, 21:57
Hi guys, First of all , i hope the Website is Open ...
i madded whene someone kill an other Player in his Team (he Dead+ get -2000$ and -10Score)
But my Problem is The Killer +the Killed Player Get Dead+ get -2000$ and -10Score
i want Only punish the Killer only not the killed Person :
this is my code:
i madded whene someone kill an other Player in his Team (he Dead+ get -2000$ and -10Score)
But my Problem is The Killer +the Killed Player Get Dead+ get -2000$ and -10Score
i want Only punish the Killer only not the killed Person :
this is my code:
pawn Code:
if(gTeam[killerid] == gTeam[playerid]) {
////This is the Team Kill ////////
SendDeathMessage(killerid,playerid,reason);
SetPlayerHealth(killerid, 0);
SetPlayerScore(killerid,GetPlayerScore(killerid)-10);
GivePlayerMoney(playerid, -2000);
GameTextForPlayer(playerid,"-2000$ and -10Score for Team Kill !",1,1);