RP script help
#1

Hi all, i want to make a rolplay server but i have a litle problem with script.For example i want make a tutorial when a player is connecting to my server but i dont know how.I also want to /rules but with a dialog.When i did it i was having a problem with /help dialog.I was put those two dialogs (/help and /rules) at the same filterscript with result non of this two working .
How i can put more than 300 objects on my server?



Thanks for helping
Jimis.
Reply
#2

I am a good RP scripter so you're in luck. Do you have a Skype or something? I can message you on there and talk you through some stuff, maybe script some stuff for you if you like.

-Axel_Petrov

PM me if you still need help.
Reply
#3

You can put more than 300 objects in the server with a streamer.
If your dialogs are not working, maybe the dialogid's are not different.
If you want a rules dialog to show, when a player connects, use this FS - LINK .
If you want a help dialog to show, when a player types /help, use this:
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Help Dialog", "First item\nSecond item\nThird item", "Select", "Close");
return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
{
switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
{
case 1:// Our dialog!
{
switch(listitem)// Checking which listitem was selected
{
case 0:// The first item listed
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"F irst item","Your text","Close", "");
}
case 1: // The second item listed
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"S econd item","Your text","Close", "");
}
case 2: // The third item listed
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"T hird item","Your text","Close", "");
}
}
}
}
}
return 1;
}

You can also use \n to make a new line. Example:
Quote:

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"F irst item","Hi!\nYou listed first item!\nNow close!","Close", "");

If you want a rules dialog to show, when a player types /rules, use this:
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Server Rules", "Don't Use Hacks\nDon't Swear\nRespect All Players\nHave Fun!", "Close", "");
return 1;
}
return 0;
}

Hope I helped you!
Reply
#4

Thanks Naturo,you really helped with commands,but what streamer to use for put more than 300 objects?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)