[HELP] Kill
#1

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

PS: Tanks
Reply
#2

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

I put this on public OnPlayerDeath?
Reply
#4

yes
Reply
#5

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

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.
}
Reply
#7

Tanks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)