Easy ask
#3

only once?
You can make a variable like this
PHP код:
new UsedCommand[MAX_PLAYERS]; //on top of the script
OnPlayerConnect(playerid)
{
    
UsedCommand[playerid] = 0;
    return 
1;
}
CMD:yourcommand(playeridparams[])
{
    if(
UsedCommand[playerid]==1) return SendClientMessage(playerid, -1"You can only use this command once!");
     
// rest of the command 
Reply


Messages In This Thread
Easy ask - by LOLITO - 12.06.2018, 16:06
Re: Easy ask - by RogueDrifter - 12.06.2018, 16:52
Re: Easy ask - by Exhibit - 12.06.2018, 16:53
Re: Easy ask - by Bingo - 12.06.2018, 17:43
Re: Easy ask - by J0sh... - 12.06.2018, 19:09
Re: Easy ask - by CodeStyle175 - 12.06.2018, 19:16

Forum Jump:


Users browsing this thread: 2 Guest(s)