Making Admin Name (+REP and REWARDS WHO CAN HELP ME)
#5

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
I tried to understand
Anyway
PHP код:
new bool:changed[MAX_PLAYERS]; 
This can be set to TRUE or FALSE to check if the admin name changed or not.

PHP код:
CMD:setadminname(playeridparams[])
{
new 
id;
new 
name[128];
if(
sscanf(params,"us[128]",id,name)) return SendClientMessage(playerid, -1"/setadminname [ID] (Name)");
if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"You are not a RCON admin");
if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1"Player is not connected");
SetPlayerName(targetidname);
changed[playerid] = true;
return 
1;

Not like that.

I want:

You cannot go on duty if an higher admin did not set your admin name (/setadminname)
When you go on duty, Your name must be changed to the admin name set
When you go off duty , Your name must be changed into normal name (The original name)
When you go on duty, Your last position must be saved
When you go off duty, Your last position must be loaded
When you leave the server, Your name must be changed into normal name and you should be in OFF DUTY

EDIT:
When you go on duty your last weapons must be saved
When you go off duty your last weapons must be loaded
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)