Tutorial - 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: Tutorial (
/showthread.php?tid=137961)
Tutorial -
Lajko1 - 30.03.2010
i was trying to make tutorial for my server and i started like this:
when player register it should put him on tutorial:
THIS IS JUST PART OF CODE
Код:
dini_Create(file);
dini_Set(file, "Password",inputtext);
dini_IntSet(file,"AdminLevel", 0);
dini_IntSet(file,"Cash", 500);
dini_IntSet(file,"Sex",0);
dini_IntSet(file,"Age",0);
dini_IntSet(file,"Tutorial",0);
SendClientMessage(playerid, 0x00ff41ff, "[System]: Account Created!");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
TogglePlayerControllable(playerid, 1);
Tutorial1(playerid);-------------------------------------> IMORTANT
than i have callback and forward:
Код:
public Tutorial1(playerid)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
new stri[128];
format(stri,256,"Welcome %s to Kljukec's Roleplay Server!\n\nI'am Tutorial NPC and i will teach you\n about things on this server.\nPlease tell us the fallowing informations!",name);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Register",stri,"Ok","Quit");
return 1;
}
and than i have other things under DialogResponse ....
but when i create account it won't show this Dialog''3'' that i made under ''Public Tutorial1(playerid)
how i can make this tutorial?
i know i should make it OnPlayerSpawn, but if i am on good way tell me
Re: Tutorial -
Flake. - 30.03.2010
well if u want it to come up when they have spawned at a class use OnPlayerSpawn or as soon as they connect use OnPlayerConnect
Re: Tutorial -
Niixie - 30.03.2010
Quote:
Originally Posted by Main post
format(stri,256,"Welcome %s to Kljukec's Roleplay Server!\n\nI'am Tutorial NPC
|
fix to
Код:
format(stri, 128, "text
and its "I'm", not "I'am"