how i make RP test in rtegistration - 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 i make RP test in rtegistration (
/showthread.php?tid=207600)
how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
i want to make RP test to Raven's Roleplay modee in the register how can i do it?
Re: how i make RP test in rtegistration -
bartje01 - 06.01.2011
continue the register command with ShowPlayerDialog
Re: how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
what?
Re: how i make RP test in rtegistration -
bartje01 - 06.01.2011
So I see that you're new to scripting. First learn some basics at samp wiki
@ your register cmd
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Re: how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
i know basic of PAWN
Re: how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
just give me a guide how to make rp test please
Re: how i make RP test in rtegistration -
bartje01 - 06.01.2011
if you know the basics you can easily make this RP tutorial
Re: how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
Rather than to be clever and that was helping me
Re: how i make RP test in rtegistration -
Vlad_Riabov - 06.01.2011
some one helpp please!!
Re: how i make RP test in rtegistration -
bartje01 - 06.01.2011
Just one example:
pawn Код:
if (strcmp("/register", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Where does RP stands for?","Roleplay\nRealplay\nReallife","Ok", "Cancel");
return 1;
}
pawn Код:
switch(dialogid)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
return 1;
}
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, 0xFF0000FF, "Correct.");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"What is meta game?","Using ooc knowledge in IC\nForcing someone to RP\nMeet someone in RP","Ok", "Cancel");
}
case 1:
{
SendClientMessage(playerid, 0xFF0000FF, "Wrong");
KickPlayer(playerid);
}
case 2:
{
SendClientMessage(playerid, 0xFF0000FF, "Wrong");
KickPlayer(playerid);
}
}
}
}