PDA

View Full Version : Tutorial[Problem]


Akcent_Voltaj
29/11/2012, 04:34 PM
Each person that replies a good help information get REP...so if you want to help reply..

i got the wait to 2 seconds and nothing..i want the dialog to appear again...

if( dialogid == 53)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,53,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 6;
strcat(tutdialogstring,"|___Tutorial: Despre server___|");
GameTextForPlayer(playerid, " ~w~ Despre server ", 1000,1);
strcat(tutdialogstring,"{FFFFFF}Acest GameMode este facut de un scripter foarte bun.");
strcat(tutdialogstring,"{FFFFFF}Id de mess:Akcent22voltaj = ID Yahoo Owner\n");
strcat(tutdialogstring,"{FFFFFF}Este GameMode facut de la 0.\n");
strcat(tutdialogstring,"{FFFFFF}Puneti un nume mai usor de citit exemplu: John\n");
strcat(tutdialogstring,"{FFFFFF}Acest GameMode nu-l vedeti nicaieri.\n");
strcat(tutdialogstring,"{FFFFFF}Avem sistem de case,masini,si toate felurile de anti-hack.\n");
strcat(tutdialogstring,"{FFFFFF}* Forumul nostru este {wWw.union-zone.eu}.\n");
ShowPlayerDialog(playerid,54,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
}
}
}
if( dialogid == 54)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,54,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 9;
strcat(tutdialogstring,"|___Tutorial: Ajutor___|\n");
SetPlayerCameraPos(playerid,307.8033,-1598.9034,114.4219);
SetPlayerCameraLookAt(playerid,394.2175,-1530.0784,32.2734);
GameTextForPlayer(playerid, " ~w~ Ajutor ", 1000,1);
strcat(tutdialogstring,"Daca nu intelegi acest tutorial trimite /sos\n");
strcat(tutdialogstring,"Daca vrei sa vezi Admini/Gamemasteri online dati /admin,/gmon \n");
strcat(tutdialogstring,"Poti trimite /sos asa: Salut ma puteti ajuta cu ....?\n");
strcat(tutdialogstring,"Nu fa probleme.pentru ca vei fi platit\n");
strcat(tutdialogstring,"Nu uita desteptul incetineaza.\n");
strcat(tutdialogstring,"Vorbeste cu un limbaj adecvat.\n");
ShowPlayerDialog(playerid,55,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
}
}
}
if( dialogid == 55)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,55,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 12;
strcat(tutdialogstring,"|___Tutorial: Coduri si abuz___|\n");
GameTextForPlayer(playerid, " ~w~ Coduri si abuz ", 1000,1);
strcat(tutdialogstring,"Daca esti prins cu Hack(******)vei fi pedepsit.\n");
strcat(tutdialogstring,"Nu faceti Bug Abuz,vei primi ban fara alte vorbe.\n");
strcat(tutdialogstring,"Daca cineva foloseste cod dai /report Id:x are Hack.\n");
strcat(tutdialogstring,"Daca tu joci correct,alti se iau dupa tine.");
ShowPlayerDialog(playerid,56,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
}
}
}
if( dialogid == 56)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,56,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 15;
strcat(tutdialogstring,"|___Tutorial: Limbaj & Reclama___|\n");
SetPlayerCameraPos(playerid,1334.2651,-959.9299,142.7608);
SetPlayerCameraLookAt(playerid,1411.1090,-809.9825,75.4482);
GameTextForPlayer(playerid, " ~w~ Limbaj & Reclama ", 1000,1);
strcat(tutdialogstring,"Serverul asta este Romanesc.\n");
strcat(tutdialogstring,"Daca vrei sa vorbesti cu un prieten cumparati un laptop.\n");
strcat(tutdialogstring,"Orice reclama\n");
strcat(tutdialogstring,"Deasemenea,sunteti obligati sa cititi pe forum si celelante reguli legate de RPG!.\n");
ShowPlayerDialog(playerid,57,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
}
}
}
if( dialogid == 57)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,57,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 18;
strcat(tutdialogstring,"|___Tutorial: Sfarsit___|\n");
GameTextForPlayer(playerid, " ~w~ Sfarsit ", 1000,1);
strcat(tutdialogstring,"Am terminat, Tutorial.\n");
strcat(tutdialogstring,"Doar tinetile minte si distrati-va!\n");
strcat(tutdialogstring,"Salutari de la echipa Romania SA:MP Server. Sa aveti noroc si distrati-va.\n");
strcat(tutdialogstring,"Conturi MULTIPLE : BAN PERMANENT!!\n");
strcat(tutdialogstring,"|=============|SFARSIT|=============|");
ShowPlayerDialog(playerid,58,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
}
}
}
if( dialogid == 58)
{
if(response)
{
if(TutTime[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_RED,"You need to wait 2 seconds to go to the next tutorial !");
ShowPlayerDialog(playerid,58,DIALOG_STYLE_MSGBOX,"Title",tutdialogstring,"Next","");
return 0;
}
else
{
TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
SetCameraBehindPlayer(playerid);
}
}
}

Akcent_Voltaj
29/11/2012, 04:53 PM
X( anyone help??

maramizo
29/11/2012, 05:48 PM
SetTimerEx("OnDialogResponse", 2000, 0, "iis[1]is[1]",playerid,dialogid,"",0,"");
This should give you some sort of idea.

Akcent_Voltaj
29/11/2012, 07:07 PM
where do i put it??

CrazyChoco
29/11/2012, 07:12 PM
You should put it at DIALOGRESPONSE :-) Hope it helps a bit! :D

Akcent_Voltaj
29/11/2012, 07:36 PM
this stops my gm..it crashes it...

maramizo
29/11/2012, 07:57 PM
Send me your whole OnDialogResponse, and I'll edit it for you myself.