command help[rep]
#2

Try This:
pawn Код:
CMD:removestrip(playerid, params[])
{
    if(Createdstrip[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_GRAD2,"You haven't created a spike strip.");
        return 1;
    }
    for(new i = 0; i <= sizeof(SpikeInfo); i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
        {
            SendClientMessage(playerid, COLOR_GRAD2,"You have removed the spike strip.");
            DeleteClosestStrip(playerid);
            Createdstrip[playerid] = 0;
            return 1;
        }
        else
        if(i = sizeof(SpikeInfo))
        {
            SendClientMessage(playerid, COLOR_GRAD2,"You have to be near spike strip.");
        }
    }
    return 1;
}
Edited::
Reply


Messages In This Thread
command help[rep] - by WardenCS - 12.03.2012, 14:35
Re: command help[rep] - by Shabi RoxX - 12.03.2012, 14:59
Re: command help[rep] - by WardenCS - 12.03.2012, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)