Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:pitaj(playerid, params[],help)
- {
- if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"{F81414}GL:RP | "BELA"Moras se ulogovati da bi koristio ovu komandu!");
- if(ServerInfo[isPitanja] == 1) return SCM(playerid,-1,"[GL:RP] "CRVENA"Pitanja su trenutno iskljucena, pokusajte kasnije!");
- if(PlayerInfo[playerid][pMutiran] != 0) return SCM(playerid,-1, "[GL:RP] {FFFFFF}Mutirani ste ne mozete koristiti chat!");
- if(gettime() < hPomoc[playerid]) return SCM(playerid, -1, ""SIVA"Ovu komandu mozete koristiti svakih 60 sekundi!");
- if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,"GL:RP | "CRVENA"Ne mozete koristiti ovu komandu jer ste zatvoreni!");
- new adm = 0;
- foreach(Player, i) { if(PlayerInfo[i][pGM] > 0 || PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pSekretarica] > 0) adm++; }
- if(adm == 0) return SCM(playerid, -1, "{F81414}[GL:RP] {FFFFFF}Nema Admina & Helpera Online pa nemozete slati pitanje!");
- new text[80];
- if(sscanf(params, "s[80]", text)) return SCM(playerid, -1, "{F81414}[GL:RP] | "SIVA"/pitaj [tekst]");
- for(new i; i < strlen(text); i++) { if(!strcmp(text[i], "{")) text[i] = '['; if(!strcmp(text[i], "}")) text[i] = ']'; }
- new string[128];
- format(string, sizeof(string), ""PLAVA"[Pitanje] Igrac od %s-a [ID:%d]: %s", GetName(playerid),playerid,text);
- AdminGameMaster(-1,string);
- format(string, sizeof(string), ""PLAVA"Vase pitanje glasi: %s",text);
- SendClientMessage(playerid,-1,string);
- SCM(playerid,-1,""CRVENA"UPOZORENJE: Svako pitanje mora da bude razumljivo i pravilno napisano,uostalom bit ce odbijeno");
- SCM(playerid,-1,"{F81414}[GL:RP] Vase pitanje je poslato svim online Adminima/Helperima | Trenutno ga obradjuju");
- hPomoc[playerid] = gettime() + 60;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment