Last 5 user using the command
#3

Last player commands:
PHP код:
new CMD1[MAX_PLAYERS][200],
    
CMD2[MAX_PLAYERS][200],
    
CMD3[MAX_PLAYERS][200],
    
CMD4[MAX_PLAYERS][200],
    
CMD5[MAX_PLAYERS][200];
    
public 
OnPlayerConnect(playerid){
    
CMD1[playerid] = "---"//newest
    
CMD2[playerid] = "---";
    
CMD3[playerid] = "---";
    
CMD4[playerid] = "---";
    
CMD5[playerid] = "---"//last
    
    
return 1;
}
public 
OnPlayerCommandReceived(playerid,cmdtext[]){
    
CMD5[playerid] = CMD4[playerid];
    
CMD4[playerid] = CMD3[playerid];
    
CMD3[playerid] = CMD2[playerid];
    
CMD2[playerid] = CMD1[playerid];
    
format(CMD1[playerid],200,"%s",cmdtext);
    return 
1;

Reply


Messages In This Thread
Last 5 user using the command - by DGRP - 17.02.2017, 02:55
Re: Last 5 user using the command - by SyS - 17.02.2017, 09:38
Re: Last 5 user using the command - by AbyssMorgan - 17.02.2017, 10:05
Re: Last 5 user using the command - by renatog - 17.02.2017, 13:30
Respuesta: Last 5 user using the command - by Eloy - 17.02.2017, 13:58

Forum Jump:


Users browsing this thread: 2 Guest(s)