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: ☹️
