Detaljan opis problema: Pa ovako, prebacio sam u dialog sekunde za kolko moze da se postavi /rac eh sad kad kliknem na 10 sekundi pise ono da sam pokrenuo respawn i sve to i nece da se respawn za 10 sec opet kucam /rac pise respawn vec pokrenut valjda sam ja zeznuo nesto oko timera sta boga pitaj ..
Dio skripte:
YCMD:rac(playerid, params[], help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,""GLAVNA""BELA": Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 2) return SCM(playerid, -1, ""GLAVNA" "BELA": Samo Admini (AL 2+)!");
if(AdminDuty == 0) return SCM(playerid,-1,""GLAVNA""BELA": Morate biti Admin/Pomocnik na duznosti !");
if(RespawnVozila) return SCM(playerid, -1, ""GLAVNA""BELA": Respawn je vec pokrenut!");
{
ShowPlayerDialog(playerid, 626, DIALOG_STYLE_LIST, "* RESPAWN *", "10 sekundi\n20 sekundi\n30 sekundi \n40 sekundi\n50 sekundi\n60 sekundi", "Izaberi", "IZLAZ");
return 1;
}
}if(dialogid == 626)//respawn
{
if(response)
{
if(listitem == 0)//10 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 10sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn1", 10000, false);
}
if(listitem == 1)//20 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 20sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn2", 20000, false);
}
if(listitem == 2)//30 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 30sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn3", 30000, false);
}
if(listitem == 3)//40 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 40sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn4", 40000, false);
}
if(listitem == 4)//50 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 50sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn5", 50000, false);
}
if(listitem == 5)//60 sekundi
{
new string; RespawnVozila = 1;
format(string,sizeof string, ""GLAVNA"[ Respawn ]"BELA": Admin "GLAVNA"%s"BELA" , je pokrenuo respawn za 60sec udjite u vase vozilo !", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimer("Respawn6", 60000, false);
}
}
return 1;
}SetTimer("Respawn1", 10000, false);//10 sekundi
SetTimer("Respawn2", 20000, false);//20 sekundi
SetTimer("Respawn3", 30000, false);//30 sekundi
SetTimer("Respawn4", 40000, false);//40 sekundi
SetTimer("Respawn5", 50000, false);//50 sekundi
SetTimer("Respawn6", 60000, false);//60 sekundiNeke slike/video za lakse dobivanje pomoci(neobavezno)://
