Need help with tutorial.. -
pawn Код:
if(TutTime
[i
] >= 1) { TutTime
[i
] += 1;
if(TutTime
[i
] == 3) { ClearChatbox
(i,
10);
SetPlayerCameraPos
(i,
2247.0215,
-1655.0173,
17.2856);
SetPlayerCameraLookAt
(i,
2244.6536,
-1663.9304,
15.4766);
SetPlayerInterior
(i,
0);
SetPlayerVirtualWorld
(i,
0);
SetPlayerPos
(i,
2256.3555,
-1646.6377,
-5.00);
SendClientMessage
(i, 0x0080FFFF,
"~ TRGOVINA ODJECE ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Ukoliko zelite bolje izgledati kupite si novu odjecu.");
SendClientMessage
(i, 0x00FFFFFF,
"Kada ste u trgovini, upisite /odjeca i odaberite si najprikladniju robu!");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 16) { ClearChatbox
(i,
10);
SetPlayerPos
(i,
2089.6624,
-1901.7891,
-5.00);
SetPlayerCameraPos
(i,
2070.8093,
-1914.6747,
18.5469);
SetPlayerCameraLookAt
(i,
2055.2405,
-1906.4608,
13.5469);
SetPlayerInterior
(i,
0);
SendClientMessage
(i, 0x0080FFFF,
"~ AUTOSKOLA ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Ukoliko nemate vozacku dozvolu trebali bi ste je kupiti na ovome mjestu.");
SendClientMessage
(i, 0x00FFFFFF,
"Ako imate novac i zelite vozacku dodjite na ovo mjesto i krenite sa testom voznje!");
SendClientMessage
(i, 0x00FFFFFF,
"Zelite znati koje license mozete kupiti? Koristitete /buylic.");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 25) { ClearChatbox
(i,
10);
SetPlayerPos
(i,
1514.3059,
-1667.8116,
-5.00);
SetPlayerCameraPos
(i,
1535.9584,
-1676.1428,
18.3828);
SetPlayerCameraLookAt
(i,
1553.7861,
-1676.4270,
16.1953);
SetPlayerInterior
(i,
0);
SendClientMessage
(i, 0x0080FFFF,
"~ POLICIJA i FBI ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Los Santos Policija i FBI su tu da vas zastite od kriminala. Ako vidite Policiju/FBI nemorate se bojati.");
SendClientMessage
(i, 0x00FFFFFF,
"Nemojte vrijedjati Policiju jer su oni tu da vas zastite od kriminalaca.");
SendClientMessage
(i, 0x00FFFFFF,
"Ako vas neko uznemirava ,pozovite policiju tako sto cete ukucati /call 911 i smireno im sve lijepo objasnite.");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 35) { ClearChatbox
(i,
10);
SetPlayerPos
(i,
1221.7010,
-1328.6449,
-5.00);
SetPlayerCameraPos
(i,
1204.3781,
-1313.3323,
16.3984);
SetPlayerCameraLookAt
(i,
1174.7167,
-1323.4485,
14.5938);
SetPlayerInterior
(i,
0);
SendClientMessage
(i, 0x0080FFFF,
"~ BOLNICA || HITNA POMOC ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Ako ste zarazeni sa bolesti kao sto je sida, trebali bi posjetiti doktora.");
SendClientMessage
(i, 0x00FFFFFF,
"Ukoliko ste ozlijeрeni pozovite hitnu pomoc sa bilokoje lokacije na broj 911");
SendClientMessage
(i, 0x00FFFFFF,
"Nakon smrti ovdje cete se stvoriti! Ako vas netko ovdje ubije prijavite ga na /report!");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 45) { ClearChatbox
(i,
10);
SetPlayerPos
(i,
1786.1758,
-1258.4976,
-5.00);
SetPlayerCameraPos
(i,
1779.4259,
-1275.1025,
15.6328);
SetPlayerCameraLookAt
(i,
1785.7263,
-1296.0200,
13.4213);
SetPlayerInterior
(i,
0);
SendClientMessage
(i, 0x0080FFFF,
"~ RTL TELEVIZIJA ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Ukoliko zelite predati oglas odite do RTL Studija i predajte oglas.");
SendClientMessage
(i, 0x00FFFFFF,
"Takodjer mozete dati svoj oglas i u novine koje prave novinari.");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 53) { ClearChatbox
(i,
10);
SetPlayerPos
(i,
1475.7020,
-1050.9489,
-5.00);
SetPlayerCameraPos
(i,
1458.3872,
-1042.2423,
24.8281);
SetPlayerCameraLookAt
(i,
1458.5930,
-1019.9205,
24.5264);
SetPlayerInterior
(i,
0);
SendClientMessage
(i, 0x0080FFFF,
"~ BANKA ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Novac je najsigurniji u banci! Bolje ga drzati u banci nego kod sebe u slucaju pljacke.");
SendClientMessage
(i, 0x00FFFFFF,
"Kada udjete u banku mozete Koristiteti /deposit ili /withdraw da polozite ili podignete vas novac sa banke.");
SendClientMessage
(i, 0x00FFFFFF,
"Vasu placu mozete podici u banci ili na bankomatu.");
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, 0x0080FFFF,
"~ KRAJ TUTORIALA ~");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
"Zahvaljujemo vam sto ste pogledali tutorial. Ukoliko trebate pomoc posjetite forum!");
SendClientMessage
(i, 0x00FFFFFF,
" ");
SendClientMessage
(i, 0x00FFFFFF,
" || Street Stories SERVER || http://www.street-stories.tk || ");
ClearChatbox
(i,
2);
} else if(TutTime
[i
] == 73) { ClearChatbox
(i,
10);
SendClientMessage
(i, 0x0080FFFF,
"Sada cete morati odgovoriti na nekoliko pitanja.");
SendClientMessage
(i, 0x00FFFFFF,
"Ukoliko krivo odgovorite na pitanje biti cete 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;
SetPlayerInterior
(i,
0);
AfterTutorial
[i
] = 1;
SetPlayerSpawn
(i
);
ShowPlayerDialog
(i,
333, DIALOG_STYLE_LIST,
"Sto je smisao RolePlay-a?",
"Simulacija stvarnog zivota\nIgranje bez obzira na stvarni zivot\nNe znam sta znaci",
"Odaberi",
"Odustani");
} }
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 Koristite cheat?","Pitacu ga gde je skinuo i kako se Koristite\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,"Tocno ste odgovorili na sva pitanja sto nam govori da znate sva RP praila.");
SendClientMessage(playerid,COLOR_WHITE,"Dobrodosli na Street Stories 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);
}
}
}
else if(dialogid == 333 && !response) return Kick(playerid);
Btw what i need to do ? How to hide that black or how to fix? only when i add questions with dialog that happend but without questions it working ... Really need this!
Re: Need help with tutorial.. -