17.03.2010, 06:30
Code:
if (strcmp("/gg", cmdtext, true) == 0) { Babax(playerid); SetPlayerPos(playerid,1317.4727,769.6672,10.8203); return 1; } //---------- public Babax(playerid) { new Float:health; new Float:x, Float:y, Float:z; if(IsPlayerInRangeOfPoint(playerid, 5.0, 1317.4727,769.6672,10.8203)) { GetPlayerPos(playerid, x, y, x); CreateExplosion(x, y, z, 12, 10.0); GetPlayerHealth(playerid,health); SetPlayerHealth(playerid,health-50); } }