11.02.2011, 09:47
(
Last edited by Unknown123; 11/02/2011 at 10:26 AM.
)
SOLVED thanks to xxmitsu
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;
}