Guest User

komanda pitaj

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