05.12.2013, 16:44
Quote:
Код:
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); } |
but before it, use IsPlayerInRangeOfPoint function, to check if killerid is near the x,y,z of the died player..