Quote:
Originally Posted by EliranPesahov
Bad mistake, here it is:
Replace your rsike command with this one.
pawn Code:
if(strcmp("/rspike", cmdtext, true, 7) == 0) { if(!IsPlayerInRangeOfPoint(playerid, 1.0, 0, 0, 0)) return SendClientMessage(playerid, 0xFF0000FF, "You is not close to ant spikes"); RemoveSpike(playerid); //Remove the spike he is close to. SendClientMessage(playerid, 0xFF0000FF, "Spike Removed"); return 1; }
|
Nope.. making a block of code
isn't a problem, not knowing it may be is. And still you can remove spike only while being in center of map....