Započeo [JV:RP] Milos
•22. Nov. 2013.• Zaključano[POMOC]Pitanja
277
pregleda
6
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
601
Postovi:
93
Teme:
Pridružio se:Sep. 2013
22. Nov. 2013.
Ime skripte: Xeptic
Opis problema: E ovako pokusavam da napravim /poff to jest da iskljucim pitanja da ne mogu da salju admin timu i kad kucam /pon onda da mogu pokusao sam slicno preko /noooc ali opet nisam uspeo pa sam potrazio ovde pomoc kod vas evo kkao mi ide /p
Slike/Video:/
Nisto da dodate: ☹️
Opis problema: E ovako pokusavam da napravim /poff to jest da iskljucim pitanja da ne mogu da salju admin timu i kad kucam /pon onda da mogu pokusao sam slicno preko /noooc ali opet nisam uspeo pa sam potrazio ovde pomoc kod vas evo kkao mi ide /p
if(strcmp(cmd,"/askq",true)==0 || strcmp(cmd,"/p",true)==0 || strcmp(cmd,"/pitaj",true)==0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD5, "Koriscenje: /p ");
return 1;
}
format(string, sizeof(string), "Pitanje [%d] %s: %s", playerid, sendername,(result));
ABroadCast(COLOR_ASKQ,string,1);
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameMasterima.");
SetTimerEx("TimerP",5000, false, "i", playerid);
}
return 1;
}Slike/Video:/
Nisto da dodate: ☹️
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
666
Postovi:
43
Teme:
Pridružio se:Avg. 2012
22. Nov. 2013.
new
ask = 1;
if(!strcmp(cmd,"/toggleask",true))
{
if(PlayerInfo < 1337)
return SendClientMessage(playerid, COLOR_GRAD5, "[Samo 1337+]");
else if(ask)
{
ask = 0;
SendClientMessage(playerid, COLOR_GRAD5, "(ASKQ) Iskljucen!");
}
else if(!ask)
{
ask = 1;
SendClientMessage(playerid, COLOR_GRAD5, "(ASKQ) Upaljen!");
}
return 1;
}
if(strcmp(cmd,"/askq",true)==0 || strcmp(cmd,"/p",true)==0 || strcmp(cmd,"/pitaj",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(!ask) return SendClientMessage(playerid, COLOR_GRAD5, "Odbijeno, ne mozete sad slati!");
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD5, "Koriscenje: /p ");
return 1;
}
format(string, sizeof(string), "Pitanje [%d] %s: %s", playerid, sendername,(result));
ABroadCast(COLOR_ASKQ,string,1);
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameMasterima.");
SetTimerEx("TimerP",5000, false, "i", playerid);
}
return 1;
}Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
601
Postovi:
93
Teme:
Pridružio se:Sep. 2013
22. Nov. 2013.
uradio sam kako ste oboica rekli ali opet nece evo slike: http://www.zaslike.com/files/x6qxtpot8eg10xg03ptu.png
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
601
Postovi:
93
Teme:
Pridružio se:Sep. 2013
23. Nov. 2013.
stavio sam ovo tvoje
new
ask = 1;
if(!strcmp(cmd,"/toggleask",true))
{
if(PlayerInfo < 1337)
return SendClientMessage(playerid, COLOR_GRAD5, "[Samo 1337+]");
else if(ask)
{
ask = 0;
SendClientMessage(playerid, COLOR_GRAD5, "(ASKQ) Iskljucen!");
}
else if(!ask)
{
ask = 1;
SendClientMessage(playerid, COLOR_GRAD5, "(ASKQ) Upaljen!");
}
return 1;
}
if(strcmp(cmd,"/askq",true)==0 || strcmp(cmd,"/p",true)==0 || strcmp(cmd,"/pitaj",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(!ask) return SendClientMessage(playerid, COLOR_GRAD5, "Odbijeno, ne mozete sad slati!");
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD5, "Koriscenje: /p ");
return 1;
}
format(string, sizeof(string), "Pitanje [%d] %s: %s", playerid, sendername,(result));
ABroadCast(COLOR_ASKQ,string,1);
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameMasterima.");
SetTimerEx("TimerP",5000, false, "i", playerid);
}
return 1;
}to jesty zamijenio sa /p sad sto imam i eto vidis slikuUnderboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
666
Postovi:
43
Teme:
Pridružio se:Avg. 2012
23. Nov. 2013.
new
ask;
// Pod OnGameModeInit stavi
ask = 1;
if(strcmp(cmd,"/askq",true)==0 || strcmp(cmd,"/p",true)==0 || strcmp(cmd,"/pitaj",true)==0)
{
if(!ask)
{
SendClientMessage(playerid, COLOR_GRAD5, "Odbijeno, ne mozete sad slati!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD5, "Koriscenje: /p ");
return 1;
}
format(string, sizeof(string), "Pitanje [%d] %s: %s", playerid, sendername,(result));
ABroadCast(COLOR_ASKQ,string,1);
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameMasterima.");
SetTimerEx("TimerP",5000, false, "i", playerid);
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava