explode no damage
#2

Quote:
Originally Posted by kbalor
Посмотреть сообщение
Код:
   	
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID && killerid != playerid)
{
   	    new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            CreateExplosion(x, y, z, 12, 5.0);
}
I tried to make this idea if a player got killed he will explode. But the problem when someone is near him they also get damaged coz of the explosion. So how not to damage players near the explosion?
mm what about using a timer for set killerid's health 9999 for some seconds till the explosion ends? try it
but before it, use IsPlayerInRangeOfPoint function, to check if killerid is near the x,y,z of the died player..
Reply


Messages In This Thread
explode no damage - by kbalor - 05.12.2013, 16:37
Re: explode no damage - by Sawalha - 05.12.2013, 16:44
Re: explode no damage - by Konstantinos - 05.12.2013, 16:45
Re: explode no damage - by Pottus - 05.12.2013, 16:51
Re: explode no damage - by kbalor - 05.12.2013, 17:14
Re: explode no damage - by Konstantinos - 05.12.2013, 17:23

Forum Jump:


Users browsing this thread: 1 Guest(s)