a normal admin script
#4

available commands: /rcon cmdlist

For in game admins you need an admin system.
For that you must set admin level for each player into his stats save file. Then OnPlyerLogin, load player's admin leve into a variable, then at every command check whatever that player has your desired level

it will be like.

In player's file

Код:
AdminLevel=1337
OnPlayerLogin

After validation of passoword, read all the data from he's file, and put what coresponds to AdminLevel it into Playerinfo[playerid][pAdminLevel]


Then before any admin command

if(Playerinfo[playerid][pAdminLevel] < 1337) return SenClientMessage(.....); // here you restrict that person with an message if he doesn't meet the required level.

Hope this helped.
Reply


Messages In This Thread
a normal admin script - by *BueNoOo* - 30.11.2009, 08:38
Re: a normal admin script - by woot - 30.11.2009, 10:32
Re: a normal admin script - by *BueNoOo* - 30.11.2009, 15:16
Re: a normal admin script - by xxmitsu - 30.11.2009, 15:26
Re: a normal admin script - by *BueNoOo* - 30.11.2009, 15:35
Re: a normal admin script - by *BueNoOo* - 30.11.2009, 16:03
Re: a normal admin script - by *BueNoOo* - 30.11.2009, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)