How do I make a... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do I make a... (
/showthread.php?tid=137144)
How do I make a... -
lionlev - 27.03.2010
I don't really know how to say that but I'll try:
How do I make something like square with text in the center of the screen when people are joining my server?
And how do I make the registration form?
Re: How do I make a... -
aircombat - 27.03.2010
Код:
OnPlayerConnect(playerid)
{
new string[128],pName[24];
GetPlayerName(playerid, pName, 24 );
format(string,sizeof(string),"%s Joined The Server",pName);
GameTextForAll(string,5000,3);
return 1;
}
Re: How do I make a... -
Joe Staff - 27.03.2010
Pretty sure he means Dialogs
Re: How do I make a... -
lionlev - 28.03.2010
Quote:
|
Originally Posted by [AC
Etch ]
Код:
OnPlayerConnect(playerid)
{
new string[128],pName[24];
GetPlayerName(playerid, pName, 24 );
format(string,sizeof(string),"%s Joined The Server",pName);
GameTextForAll(string,5000,3);
return 1;
}
|
No, you didn't get me right. I want to make a box with text inside (Rules and stuff) and only played who joined can see it.
And also registration/login box
Re: How do I make a... -
[XST]O_x - 28.03.2010
a box with a text inside called textdraw,and if you want to create a login/registeration box u need to use dialog.
textdraw:
https://sampwiki.blast.hk/wiki/TextDrawCreate
dialog:
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
Re: How do I make a... -
aircombat - 28.03.2010
under OnPlayerConnect :
Код:
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Rules :", "rule\nrule\nrule\nrule\nrule", "Accept", "Decline");
// then /n mean a new line.
then Under OnDialogResponse add :
Код:
if(dialogid == 9999)
{
if(response == 0)
{
SendClientMessage(playerid, 0xAA3333AA, "You MUST Accept Those Rules Or Be Kicked!");
Kick(playerid);
new stringsys [256];
new pName4[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName4, MAX_PLAYER_NAME);
format(stringsys, sizeof(stringsys), "[SYSTEM] %s Has Been Kicked For Not Accepting Rules!", pName4);
SendClientMessageToAll(0xAA3333AA, stringsys);
}
if(response == 1)
{
SendClientMessage(playerid, 0xAA3333AA, "Thank You For Accepting Our Rules.");
}
return 1;
}
that code will make if the player press Accept he can play , if he pressed Decline he gets kicked

feel free to PM me any question