Help. Give killer $1000
#7

Quote:
Originally Posted by $ЂЯĢ
Quote:
Originally Posted by (SF)Noobanatior
ok here ya go under OnPlayerDeath go

pawn Код:
if(killerid != INVALID_PLAYER_ID) {
   if(IsPlayerConnected(killerid)GivePlayerMoney(killerid,amount);
}
where amount is the dolar value
What a stupid piece of code.


You check if killerid is invalid ID and in next step you check if killerid is connected.

Every function has IsPlayerConnected check included, so it doesn't matter if you check if killerid is valid or not sicne GivePlayerMoney will do it also.
read it i check if there != to an invalid id
Reply


Messages In This Thread
Help. Give killer $1000 - by Hash [NL-RP] - 29.05.2010, 21:03
Re: Help. Give killer $1000 - by (SF)Noobanatior - 29.05.2010, 21:08
Re: Help. Give killer $1000 - by Retardedwolf - 29.05.2010, 21:08
Re: Help. Give killer $1000 - by (SF)Noobanatior - 29.05.2010, 21:13
Re: Help. Give killer $1000 - by Hash [NL-RP] - 29.05.2010, 21:27
Re: Help. Give killer $1000 - by Sergei - 29.05.2010, 21:43
Re: Help. Give killer $1000 - by (SF)Noobanatior - 29.05.2010, 21:50
Re: Help. Give killer $1000 - by Sergei - 29.05.2010, 21:56
Re: Help. Give killer $1000 - by RyDeR` - 29.05.2010, 22:50

Forum Jump:


Users browsing this thread: 2 Guest(s)