20.07.2009, 07:02
hi i was woundering if someone knew the code to makeing something like this
if(adminlevel = 1)
//blah dont need thist stuff just the levle system
//blah
//blah
if(adminlevel2 = 2)
//blah
//blah
//blah
and then to make that happen i would need something like
new PlayerHasAdmin[MAX_PLAYERS];
then that would fit into it so like
if(adminlevel = 1)
PlayerHasAdmin[playerid] = 1;
if(adminlevel2 = 1)
PlayerHasAdmin2[playerid] = 1;
if(!strcmp(cmdtext, "/killplayer", true))
SetPlayerHealth()//(i dont know how to set player healso a tad of help with that)
PlayerHaseAdmin[playerid] = 0;
PlayerHaseAdmin2[playerid] = 0;(so like if a player hase admin 2 they still can use admin levle 1 stuff
so if someone could help that would be nice thx for your time
if(adminlevel = 1)
//blah dont need thist stuff just the levle system
//blah
//blah
if(adminlevel2 = 2)
//blah
//blah
//blah
and then to make that happen i would need something like
new PlayerHasAdmin[MAX_PLAYERS];
then that would fit into it so like
if(adminlevel = 1)
PlayerHasAdmin[playerid] = 1;
if(adminlevel2 = 1)
PlayerHasAdmin2[playerid] = 1;
if(!strcmp(cmdtext, "/killplayer", true))
SetPlayerHealth()//(i dont know how to set player healso a tad of help with that)
PlayerHaseAdmin[playerid] = 0;
PlayerHaseAdmin2[playerid] = 0;(so like if a player hase admin 2 they still can use admin levle 1 stuff
so if someone could help that would be nice thx for your time