Spike bug? How to fix?
#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


Messages In This Thread
Spike bug? How to fix? - by Unknown123 - 11.02.2011, 09:47
Re: Spike bug? How to fix? - by xxmitsu - 11.02.2011, 10:09
Re: Spike bug? How to fix? - by Unknown123 - 11.02.2011, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)