Posts: 147
Threads: 38
Joined: Jul 2015
Reputation:
0
Eg If [pData][pAdmin] <= 5
SendClientMessage(playerid, "Command successfully executed");
hope u got what im trying to say..
Posts: 168
Threads: 13
Joined: Jan 2016
Reputation:
0
Use enums to save player's info.
Posts: 570
Threads: 55
Joined: Oct 2016
Quote:
Originally Posted by XHunterZ
Eg If [pData][pAdmin] <= 5
SendClientMessage(playerid, "Command successfully executed");
hope u got what im trying to say..
|
For an example you've to make Admin system like this:
PHP код:
enum PlayerData {
Pass,
Cash,
Score,
Admin
};
new Player[MAX_PLAYERS][PlayerData];
So when you'd make a command just for admin:
PHP код:
CMD:healme(playerid,params[])
{
if(Player[playerid][Admin] >= 1)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0xF8F8F8FFF, "[SERVER]: {FFFFFF}You've been successfully Healed!");
}
return 1;
}
and like that..
And to learn how to make a simple Admin system just
click here