hold off command?
#6

I recommend you use ZCMD, however, a normal command that you will have to put under OnPlayerCommandText callback:

pawn Code:
if(!strcmp(cmdtext,"/removemyobjects", true)) // If the command submitted.
{
    for(new ao; ao < 10; ao++) // This loops through the ten slots, so all codes between the for braces will happen for the ten
    {
        if(IsPlayerAttachedObjectSlotUsed(playerid, ao))  // Checks if the slots are used.
        {
            RemovePlayerAttachedObject(playerid, ao); // If so remove the object(s).
        }
    }
    return 1;
}
Reply


Messages In This Thread
hold off command? - by «XTC» - 26.06.2012, 07:19
Re: hold off command? - by park4bmx - 26.06.2012, 07:39
Re: hold off command? - by Randy More - 26.06.2012, 08:21
Re: hold off command? - by «XTC» - 26.06.2012, 08:34
Re: hold off command? - by vital2k - 26.06.2012, 08:38
Re: hold off command? - by Randy More - 26.06.2012, 08:39
Re: hold off command? - by «XTC» - 26.06.2012, 08:40
Re: hold off command? - by park4bmx - 26.06.2012, 08:47
Re: hold off command? - by vital2k - 26.06.2012, 08:47
Re: hold off command? - by «XTC» - 26.06.2012, 08:57
Re: hold off command? - by vital2k - 26.06.2012, 08:57
Re: hold off command? - by park4bmx - 26.06.2012, 09:15
Re: hold off command? - by «XTC» - 26.06.2012, 09:15

Forum Jump:


Users browsing this thread: 5 Guest(s)