11.03.2011, 15:21
So i add a questions to the tutorial... And when tutorial finish and i answer questions look on the screenshot what happening :S
Tutorial:
Dialog:
Anyone to help me thanks.
Tutorial:
pawn Код:
if(TutTime[i] >= 1)
{
TutTime[i] += 1;
if(TutTime[i] == 3)
{
ClearChatbox(i, 10);
SetPlayerCameraPos(i, 887.8566,-893.6392,81.3654);
SetPlayerCameraLookAt(i, 887.8566,-893.6392,81.3654);
SetPlayerInterior(i, 0);
SetPlayerVirtualWorld(i, 0);
SetPlayerPos(i, 2256.3555,-1646.6377,-5.00);
SendClientMessage(i, COLOR_YELLOW, "~ UVOD ~");
SendClientMessage(i, COLOR_GREEN, " ");
SendClientMessage(i, COLOR_GREEN, "Prije svega, dobrodosli na Balkan Street server.");
SendClientMessage(i, COLOR_GREEN, "Ovaj server zahtjeva da se ponasate u skladu Propisa i Zakona samog Servera.");
SendClientMessage(i, COLOR_GREEN, "Sve sto vas interesuje u vezi Servera, mozete da upitate GameMastere ili Admine.");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 16)
{
ClearChatbox(i, 10);
SetPlayerPos(i, 2089.6624,-1901.7891,-5.00);
SetPlayerCameraPos(i, 1119.3103,-773.1075,110.4072);
SetPlayerCameraLookAt(i, 1119.3103,-773.1075,110.4072);
SetPlayerInterior(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ NOVI IGRAC ~");
SendClientMessage(i, COLOR_GREEN, "Ukoliko ste novi igrac na Serveru i niste bas upoznati sa svim Informacijama, obratite se Adminima ili GameMasterima ");
SendClientMessage(i, COLOR_GREEN, "Ako nemate polozen vozacki ispit, mi preporucujemo da to obavite odmah nakon ovog Tutoriala");
SendClientMessage(i, COLOR_GREEN, "Strogo se cuvajte Policije, jer su kazne velike ako vozite bez dozvola.");
SendClientMessage(i, COLOR_GREEN, "Policija vam nije neprijatelj, ona je tu da vama pruzi sto sigurniji boravak u gradu.");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 25)
{
ClearChatbox(i, 10);
SetPlayerPos(i, 1514.3059,-1667.8116,-5.00);
SetPlayerCameraPos(i, 1004.1655,-1147.2301,23.7958);
SetPlayerCameraLookAt(i, 1004.1655,-1147.2301,23.7958);
SetPlayerInterior(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ BANDE i MAFIJE ~");
SendClientMessage(i, COLOR_GREEN, " ");
SendClientMessage(i, COLOR_GREEN, "Kad-Tad ce vam se desiti da slucajno naidjete na nekog clana Mafije ili Bande.");
SendClientMessage(i, COLOR_GREEN, "Bande i Mafije se nalaze po cijelom Los Santosu, i izbjegavajte kontakt s njima.");
SendClientMessage(i, COLOR_GREEN, "Clan Bande ili Mafije moze da vas kidnapuje i oduzme sav novac koji imate.");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 35)
{
ClearChatbox(i, 10);
SetPlayerPos(i, 1221.7010,-1328.6449,-5.00);
SetPlayerCameraPos(i, 730.5228,-1330.2371,27.2452);
SetPlayerCameraLookAt(i, 730.5228,-1330.2371,27.2452);
SetPlayerInterior(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ GM i ADMIN TIM ~");
SendClientMessage(i, COLOR_GREEN, "Postujte ostale onako kako bi voljeli da ostali postuju vas ");
SendClientMessage(i, COLOR_GREEN, "GameMasteri i Admini su tu da vama pruze bilo kakvu pomoc na Serveru.");
SendClientMessage(i, COLOR_GREEN, "Od GameMastera i Admina nesmijete traziti novac niti ih vrijedjati");
SendClientMessage(i, COLOR_GREEN, "Naravno, ukoliko primjetite da neki GM ili Admin iskoristava svoju poziciju u negativnom smislu, prijavite to na Forum");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 45)
{
ClearChatbox(i, 10);
SetPlayerPos(i, 1786.1758,-1258.4976,-5.00);
SetPlayerCameraPos(i, 1023.6251,-1930.3696,16.4759);
SetPlayerCameraLookAt(i, 1023.6251,-1930.3696,16.4759);
SetPlayerInterior(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ PPRAVILA SERVERA ~");
SendClientMessage(i, COLOR_GREEN, "Pravila Servera su veoma jednostavna, moraju se postovati, svaki Server ima svoja Pravila, pa i ovaj ");
SendClientMessage(i, COLOR_GREEN, "Ne smijete ciniti DeathMatch na poznatim lokalnim mjestima.");
SendClientMessage(i, COLOR_GREEN, "Ne smijete vrijedjati, psovati ili na bilo koji drugi nacin omalozavati ostale igrace i Admin Tim.");
SendClientMessage(i, COLOR_GREEN, "Ne smijete spamati na /p ,jer cete dobiti kick zbog spama.");
SendClientMessage(i, COLOR_GREEN, "Bilo bi mnogo pozeljno da znate neka osnovna RP Pravila.");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 53)
{
ClearChatbox(i, 10);
SetPlayerPos(i, 1475.7020,-1050.9489,-5.00);
SetPlayerCameraPos(i, 887.8566,-893.6392,81.3654);
SetPlayerCameraLookAt(i, 887.8566,-893.6392,81.3654);
SetPlayerInterior(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ EVENTI I DRUGE LOKALNE ZABAVE ~");
SendClientMessage(i, COLOR_GREEN, "Na serveru mozete dodatno zaraditi novac.");
SendClientMessage(i, COLOR_GREEN, "Svako vece na Serveru se organizuju Eventi, na kojem ucestvuju svi igraci.");
SendClientMessage(i, COLOR_GREEN, "Preko dana se pusta IZGUBLJENA AKTOVKA, na vama je da je nadjete i dostavite na odredjeno mjesto.");
SendClientMessage(i, COLOR_GREEN, "Kada dostavite aktovku na odredjeno mjesto, dobivate novac ");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 63)
{
ClearChatbox(i, 10);
SetPlayerInterior(i, 3);
SetPlayerPos(i, 330.6825,163.6688,1014.1875);
SetCameraBehindPlayer(i);
SetPlayerVirtualWorld(i, 0);
SendClientMessage(i, COLOR_YELLOW, "~ KRAJ TUTORIJALA ~");
SendClientMessage(i, COLOR_GREEN, " ");
SendClientMessage(i, COLOR_GREEN, "Postoji mnogo zanimljivih mijesta u LS-u, ali cete ih morati otkriti sami.");
SendClientMessage(i, COLOR_GREEN, "Nemojte zaboraviti na RP pravila, jer ze zbog non-rp igre dobijaju warnovi i banovi!");
SendClientMessage(i, COLOR_GREEN, " - Uzivajte na nasem serveru, Balkan Street.");
ClearChatbox(i, 2);
}
else if(TutTime[i] == 73)
{
ClearChatbox(i, 10);
SendClientMessage(i, 0x0080FFFF, "Sad ce vam biti postavljena neka pitanja da bi vas proverili dal znate RP pravila.");
SendClientMessage(i, 0x00FFFFFF, "Ako ne odgovorite tacno na neko pitanje,bicete vraceni na tutorial.");
SendClientMessage(i, 0x00FFFFFF, " ");
TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
TogglePlayerControllable(i, 1);
MedicBill[i] = 0;
AfterTutorial[i] = 1;
ShowPlayerDialog(i, 333, DIALOG_STYLE_LIST, "Sta je RolePlay?","Simulacija stvarnog zivota\nIgranje bez obzira na stvarni zivot\nNe znam sta znaci","Izaberi", "Odustani");
SetTimerEx("UnsetAfterTutorial", 2500, false, "i", i);
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", i);
SetPlayerSpawn(i);
}
}
pawn Код:
if(dialogid == 333 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1903, DIALOG_STYLE_LIST, "Sta je Death Match?","Ubijanje bez razloga\nSkakanja sa jedne zgrade na drugu\nGazenje ljudi vozilom","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
case 1:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 2:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1903 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1904, DIALOG_STYLE_LIST, "Sta je Spawn Kill?","Izbegavanje metkova ko matrix\nUbijanje ljudi na mestu stvaranja","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
case 1:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 2:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1904 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1905, DIALOG_STYLE_LIST, "Sta je Ravange Kill?","Neprestano skakanje\nUbijanje iz osvete","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1905 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1906, DIALOG_STYLE_LIST, "Kojom se stranom vozi?","Levom\nDesnom","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1906 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1907, DIALOG_STYLE_LIST, "Sta cete uraditi ako vidite da neko koristi cheat?","Pitacu ga gde je skinuo i kako se koristi\nPrijavicu ga na /report da ga banuju","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1907 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1908, DIALOG_STYLE_LIST, "Sta je Drive By?","To je kada neko brzo vozi\nTo je ubijanje ljudi sa vozckag mesta","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1908 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1909, DIALOG_STYLE_LIST, "Sta je Spam?","To je iskazivanje radnje igraca na /me\nPisanje iste recenice ili reci vise puta","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1909 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_GREEN,"Tacno");
ShowPlayerDialog(playerid, 1910, DIALOG_STYLE_LIST, "Sta je Bug Abuse?","To je dozvoljeno na svim RP serverima\nIskoriscavanje bugova na serveru","Izaberi", "Odustani");
ClearChatbox(playerid, 10);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
if(dialogid == 1910 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_RED,"Netacno,vracamo vas na tutorial!");
TutTime[playerid] = 1;
}
case 1:
{
SendClientMessage(playerid,COLOR_RED,"-------------------------------------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_GREEN,"Tacno ste odgovorili na sva pitanja sto nam govori da znate sva RP praila.");
SendClientMessage(playerid,COLOR_WHITE,"Dobrodosli na Los Santos Balcan server,zabavite se.");
SendClientMessage(playerid,COLOR_WHITE,"Molimo vas postujte sva /pravila i /zakoni kako bi igra bila bolja i zabavnija.");
SendClientMessage(playerid,COLOR_WHITE,"Za pocetak nadjite posao i zaradite novac da bi ste kupili neke osnovne stvari.");
SendClientMessage(playerid,COLOR_RED,"-------------------------------------------------------------------------------------------------------------------------------------------");
SafeGivePlayerMoney(playerid, 1500);
}
}
}