Creating commands and using what?
#1

Hello all, actually i implemented a login and register system all works fine with dialogs.
I made a make admin script and works fine.
Here
PHP код:
if (strcmp("/makemeadmin"cmdtexttrue10) == 0//strcmp(
    
{
        if(
IsPlayerAdmin(playerid)==1)
        {
         new 
string[40];
        new 
alvl;
        
alvl=1337;
        
PlayerInfo[playerid][pAdmin]=alvl;
        
format(string,sizeof(string),"you have set your admin level to %i",alvl);
        
SendClientMessage(playerid,WHITE,string);
        return 
1;
        }
        else 
SendClientMessage(playerid,RED,"You are not BBFN"); return 1;
    } 
But i'm not sure if this structure => (strcmp("/makemeadmin", cmdtext, true, 10) == 0)
Is a good one to use for future commands.
I saw examples of zcmd or ycmd smth like that
Can you guys explain further and give me good tutorial links about a good commanding systems?
Thanks alot.
Reply


Messages In This Thread
Creating commands and using what? - by Alvin007 - 03.02.2015, 14:01
Re: Creating commands and using what? - by CalvinC - 03.02.2015, 14:10
Re : Creating commands and using what? - by Alvin007 - 03.02.2015, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)