Help me make a /credits cmd [ZCMD]
#1

Hello everyone,

I want to create a /credits cmd which will open a dialog box.. Most of the tutorials are with strcmp and I can't really understand it..

Please help me,

Thank you.
Reply
#2

Код:
#define DIALOG_CREDITS            543
CMD:credits(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "Credits", "...", "...", "");
    return 1;
}
Reply
#3

Код HTML:
CMD:credits(playerid, params[])
{
		new str[256];
	format(str, sizeof(str), "TEXT.\nTEXT SECOND LINE\nTHIRD LINE");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Credits", str, "OK", "");
		return 1;
}
Reply
#4

CMD:credits(pid)return spd(pid,d_noret,msgbox,"Credits","{ff0000}Main scripter: Jade_Smith\nOwner: John_Bigfoot\nFast scripter: Jade_Oilhair","Okey","");
Reply
#5

Thanks, it worked! I want to change the colour of some texts while appearing in the dialog box. How do I do it?
Reply
#6

PHP код:
"Credits:","{FFFFFF}Server Owner: {E10000}Dwayne\n"cyellow2"Scripter: "cred"Dwayne\n ........ 
use color code before text you want color it
Reply
#7

I'd suggest you learn the basics of strcmp first, then move on to zcmd.
Reply
#8

CMD:credits(playerid, params[])
{

SendClientMessage(playerid, COLOR_RED, "Credits: ");
SendClientMessage(playerid, 0x00FF00FF, "Credits: ");
SendClientMessage(playerid, -1, "Credits:.");

return 1;


}
Reply
#9

zcmd is not that good for me i will suggest u strcmp
Reply
#10

Quote:
Originally Posted by Owen007
Посмотреть сообщение
zcmd is not that good for me i will suggest u strcmp
Not good just for you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)