30.11.2009, 15:26
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
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.
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
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.