[Pedido] daradmin
#6

Fiz um exemplo supondo que seja um sistema cujo nнvel varia de 0 a 5.

PHP код:
CMD:daradmin(playeridparams[]) {
    if(
Admin[playerid] < 5) {
        return 
1;
    }
    new 
targetidlevel;
    if(
sscanf(params"ud"targetidlevel) || targetid == 0xFFFF) {
        return 
1;
    }
    if(!
IsPlayerConnected(targetid)) {
        return 
1;
    }
    if(!(
<= level <= 5)) {
        return 
1;
    }
    
Admin[targetid] = level;
    return 
1;

Reply


Messages In This Thread
daradmin - by CZ - 26.09.2015, 00:56
Re: daradmin - by Madhrer - 26.09.2015, 01:06
Re: daradmin - by garotin - 26.09.2015, 01:32
Re: daradmin - by CZ - 26.09.2015, 01:36
Re: daradmin - by garotin - 26.09.2015, 01:54
Re: daradmin - by zPain - 26.09.2015, 02:01
Re: daradmin - by CZ - 26.09.2015, 02:17
Re: daradmin - by zPawnu - 28.09.2015, 01:12
Re: daradmin - by MarcoAurelio - 28.09.2015, 15:32

Forum Jump:


Users browsing this thread: 2 Guest(s)