11.02.2011, 10:09
See if this code works:
pawn Code:
dcmd_deletespike(playerid, params[])
{
#pragma unused params
if(gTeam[playerid] == TEAM_SWAT || IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You cannot remove the spike(s) inside a vehicle");
if(DeleteClosestStrip(playerid)) SendClientMessage(playerid, COLOR_GREEN, "Spike Removed");
else SendClientMessage(playerid, COLOR_ERROR, "There is no spikes close to you");
}
return 1;
}