Posts: 311
Threads: 55
Joined: Dec 2009
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.
What's the problem you are having?
Posts: 311
Threads: 55
Joined: Dec 2009
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");
}
Posts: 311
Threads: 55
Joined: Dec 2009
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;
}
}
Posts: 1,676
Threads: 44
Joined: Aug 2010
Reputation:
0
you can post CMD commands were you wont in your FS/GM is no need to be in OnPlayerCommand
Posts: 311
Threads: 55
Joined: Dec 2009
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.
Posts: 311
Threads: 55
Joined: Dec 2009
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