Help [+rep]
#1

I'm making a good freeroam script. I need help with:

Doing /admins + Levels + make admin if logged into rcon.

Also,

The factions I am having 2. Clan Members and I can try and script a HQ and SAPD.
Reply
#2

What's the problem you are having?
Reply
#3

I tried to make /aduty and /help before I make some and make then admin only but It wont work ingame.

Code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/help", cmdtext) == 0)
    {
		SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
		SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
		SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
		SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
		SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
  	}
  	if (strcmp("/aduty", cmdtext) == 0)
    {
		SetPlayerSkin(playerid,294);
		GivePlayerWeapon(playerid,38,999999);
		SetPlayerName(playerid,"Admin");
  	}
    return 0;
}
Edit: I would make them ZCMD but I dont know if it is the same, like:

Код:
COMMAND:aduty
{
		SetPlayerSkin(playerid,294);
		GivePlayerWeapon(playerid,38,999999);
		SetPlayerName(playerid,"Admin");
}
Reply
#4

PHP код:
CMD:help(playeridparams[])
{
    
SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
    
SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    
SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    
SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    
SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
    return 
true;
}
CMD:aduty(playeridparams[])
{
    
SetPlayerSkin(playerid,294);
    
GivePlayerWeapon(playerid,38,999999);
    
SetPlayerName(playerid,"Admin");
    return 
true;

Reply
#5

So It will be

Код:
public OnPlayerCommand(palyerid, cmdtext[])
{
CMD:help(playerid, params[]) 
{ 
    SendClientMessage(playerid,0xFFFFFF,"--------------------------------"); 
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)"); 
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)"); 
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)"); 
    SendClientMessage(playerid,0xFFFFFF,"--------------------------------"); 
    return true; 
} 

CMD:aduty(playerid, params[]) 
{ 
    SetPlayerSkin(playerid,294); 
    GivePlayerWeapon(playerid,38,999999); 
    SetPlayerName(playerid,"Admin"); 
    return true; 
}  
}
Reply
#6

I can give you the full link of an admin script which is Get Lux Admin from here
Reply
#7

ZCMD never inside a callback.
pawn Код:
public OnPlayerCommand(playerid, cmdtext[])
{
    return 1;
}
CMD:help(playerid, params[])
{
    SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    SendClientMessage(playerid,0xFFFFFF,"[GENERAL] EDIT LINES (Line: 102)");
    SendClientMessage(playerid,0xFFFFFF,"--------------------------------");
    return 1;
}

CMD:aduty(playerid, params[])
{
    SetPlayerSkin(playerid,294);
    GivePlayerWeapon(playerid,38,999999);
    SetPlayerName(playerid,"Admin");
    return 1;
}
Reply
#8

you can post CMD commands were you wont in your FS/GM is no need to be in OnPlayerCommand
Reply
#9

Mr.WAngD0 No offence I just want my own unique system.

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 34 seconds.
Reply
#10

Thank you

doreto
Dwayne


How do I set admin levels?

Also set adminduty to a certain admin level

After this I think I can get the jist
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)