03.02.2015, 14:01
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
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.
I made a make admin script and works fine.
Here
PHP код:
if (strcmp("/makemeadmin", cmdtext, true, 10) == 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;
}
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.