i need help
#1

hi! i am new in making scripts and stuff and i need help i am having trouble with creating a dialog box which will show the admin cmds i need the it to work with /acmds i know its easy dor you guys but its not for me
Reply
#2

Read: https://sampwiki.blast.hk/wiki/ShowPlayerDialog and https://sampwiki.blast.hk/wiki/Dialog_Styles
Reply
#3

Код:
CMD:acommands(playerid) // the command
{
new string[256]; // a string with 256 cells
strcat(string, " Admin Commands List\n);// \n is use to goto next line
strcat(string, "/acommand , /secondcommand\n);
ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, " Admin Commands, string, "Okay", ""); // Now showing the dialog
return 1; // returning 1;
Reply
#4

uhh i am so tired with this codes cant anyone make me the code without giving me examples? i want a list of my admin commands everytime i do /acmds i want my cmds to be shown my commands are
// Moderator (Level 1)
/ban /slap /kick /warn /mute /unmute /jail /unjail /mutelist /announce /spec
/specoff /asay /ip

// Administrator (Level 2)
/tempban /unban /clearchat /cweapons /worldtime /gotoxyz (+All level 1 commands)

// Head Administrator (Level 3)
/setlevel /setvip /removevip /setexp /resetgod (+All level 1 & 2 commands)
(Head admins cannot set anyone server owner)

// Server Owner (Level 4)
/setlevelviarcon /kickall /toglostaccmsg /saveallstats (+All level 1, 2 & 3 commands)



if anyone could help me it would be great
Reply
#5

Quote:
Originally Posted by HoNEYKISS
Посмотреть сообщение
uhh i am so tired with this codes cant anyone make me the code without giving me examples? i want a list of my admin commands everytime i do /acmds i want my cmds to be shown my commands are
// Moderator (Level 1)
/ban /slap /kick /warn /mute /unmute /jail /unjail /mutelist /announce /spec
/specoff /asay /ip

// Administrator (Level 2)
/tempban /unban /clearchat /cweapons /worldtime /gotoxyz (+All level 1 commands)

// Head Administrator (Level 3)
/setlevel /setvip /removevip /setexp /resetgod (+All level 1 & 2 commands)
(Head admins cannot set anyone server owner)

// Server Owner (Level 4)
/setlevelviarcon /kickall /toglostaccmsg /saveallstats (+All level 1, 2 & 3 commands)



if anyone could help me it would be great
Код:
CMD:acmds(playerid)
{
	if(pAdmin[playerid] < 1)
		return Error(playerid, "You are not authorized to use this command!");

	new line3[2200];
	strcat(line3, ""WHITE_E"Moderator Commands:"LB2_E"\n\
	/ban /slap /kick /warn /mute /unmute /jail /unjail /mutelist /announce /spec
/specoff /asay /ip");
	
	strcat(line3, "\n\n"WHITE_E"Administrator Commands:"LB2_E"\n\
 	/tempban /unban /clearchat /cweapons /worldtime /gotoxyz (+All level 1 commands)");

	strcat(line3, ""WHITE_E"\n\nHead Admin Commands:"LB2_E"\n\
	/setlevel /setvip /removevip /setexp /resetgod (+All level 1 & 2 commands)
(Head admins cannot set anyone server owner)");

	strcat(line3, "\n\n"WHITE_E"Owner Commands:"LB2_E"\n\
	/setlevelviarcon /kickall /toglostaccmsg /saveallstats  (+All level 1, 2 & 3 commands)
	\n"BLUE_E"HCv4 "WHITE_E"- Type /check to perform an anti-cheat check on the server.\n\
	"PINK_E"Click on any player on the tab menu to open up the admin panel.");
	ShowPlayerDialog(playerid, NO_DIALOG, DIALOG_STYLE_MSGBOX, ""ORANGE_E"Server Name: "YELLOW_E"Staff Commands", line3, "OK","");
	return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)