SA-MP Forums Archive
[HELP] Kill - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Kill (/showthread.php?tid=129748)



[HELP] Kill - ()ZzY - 23.02.2010

When I kill an opponent how i can take all the money from it?

PS: Tanks


Re: [HELP] Kill - BlackFoX - 23.02.2010

Код:
if(killerid!=INVALID_PLAYER_ID)GivePlayerMoney(killerid,GetPlayerMoney(playerid));
GivePlayerMoney(playerid,-GetPlayerMoney(playerid));



Re: [HELP] Kill - ()ZzY - 23.02.2010

I put this on public OnPlayerDeath?


Re: [HELP] Kill - BlackFoX - 23.02.2010

yes


Re: [HELP] Kill - ()ZzY - 23.02.2010

Do you mind ..... how to make this script only at the gangs? an example...?


Re: [HELP] Kill - Correlli - 23.02.2010

Quote:
Originally Posted by ()ZzY
Do you mind ..... how to make this script only at the gangs? an example...?
pawn Код:
if(/* is player in gang variable */)
{
  // other code.
}



Re: [HELP] Kill - ()ZzY - 23.02.2010

Tanks...