27.12.2009, 23:25
i want to create a door which, if a player want to enter, he must destroy the door with a explosion
if you have any idea how can i do that tell me
if you have any idea how can i do that tell me
new doors;
doors = CreateObject( 2587, 0.0, 0.0, 0.0, 0, 0, 96 );
if(strcmp(cmd, "/ddoors", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 0.0,0.0,0.0)) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateExplosion(x+random(5), y+random(5), z+random(5), 12, 10.0); DestroyObject(doors); } else { SendClientMessage(playerid, COLOR_RED, "You cant opend doors here!"); return 1; } }