Spike bug? How to fix?
#1

SOLVED thanks to xxmitsu
Reply
#2

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;
}
Reply
#3

Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)