how would i do this?
#4

pawn Код:
new RulesAmount[MAX_PLAYERS];
 
     OnplayerConnect(playerid)
     {
         RulesAmount[playerid] = 0;
     }


     if(strcmp(cmd, "/rules", true) == 0)
     {
        if(RulesAmount[playerid] <= 1) { RulesAmount[playerid] ++;
        else
        {
             RulesAmount[playerid] = 0;
             return SendClientMessage(playerid,red,"You've typed /rules twice!");
        }
     }

}
Reply


Messages In This Thread
how would i do this? - by CrazyBlob - 14.04.2011, 18:00
Re: how would i do this? - by Seven_of_Nine - 14.04.2011, 18:07
Re: how would i do this? - by CrazyBlob - 14.04.2011, 18:14
Re: how would i do this? - by Kyle - 14.04.2011, 18:17
Re: how would i do this? - by CrazyBlob - 14.04.2011, 18:19
Re: how would i do this? - by Seven_of_Nine - 14.04.2011, 18:20
Re: how would i do this? - by Kyle - 14.04.2011, 18:20
Re: how would i do this? - by Seven_of_Nine - 14.04.2011, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)