Make an object appear with a command.
#7

From Guest:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/disable", cmdtext, true, 10) == 0)
    {
        SetTimerEx("Disabled", 15000, false, "i", playerid);
        SendClientMessage(playerid, -1, "Disablying in 15 seconds!");
        return 1;
    }
    return 0;

//=================================Somewhere else//
    forward Disabled(playerid);
    public Disabled(playerid)
    {
         for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
        if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
        return 1;
    }
Reply


Messages In This Thread
Make an object appear with a command. - by KellyG - 23.05.2013, 01:04
Re: Make an object appear with a command. - by Guest123 - 23.05.2013, 01:36
Re : Make an object appear with a command. - by KellyG - 23.05.2013, 06:28
Re: Make an object appear with a command. - by Guest123 - 23.05.2013, 06:43
Re : Make an object appear with a command. - by KellyG - 23.05.2013, 07:06
Re : Make an object appear with a command. - by KellyG - 23.05.2013, 07:47
Re: Make an object appear with a command. - by Strier - 23.05.2013, 07:58
Re: Make an object appear with a command. - by Guest123 - 23.05.2013, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)