Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:report(playerid,params[], help)
- {
- new text[128];
- if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1,""ZELENA"[INFO] "BELA"/report [text]");
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ID] == playerid) SendClientMessage(playerid,-1,""ZELENA"[GRESKA] "BELA"Vec si poslao jedan report,sacekaj da ti odgovore!");
- return 1;
- }
- new bool:p; new reportnum;
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(!p)
- {
- if(strcmp(Reports[i][Ime],"Niko",false) == 0)
- {
- p = true;
- reportnum = i;
- }
- }
- }
- if(!p) return SendClientMessage(playerid,-1,""ZELENA"[GRESKA] "BELA"Trenutno postoji 100 neprocitanih reporta, sacekajte dok se rascisti!");
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- new timestr[64]; new dan,mesec,god,sat,minut,sek;
- getdate(god,mesec,dan); gettime(sat,minut,sek);
- format(timestr,sizeof(timestr),"%02d/%02d/%d, %02d:%02d:%02d",dan,mesec,god,sat,minut,sek);
- format(Reports[reportnum][Ime],MAX_PLAYER_NAME,"%s",name);
- format(Reports[reportnum][Report],128,"%s",text);
- format(Reports[reportnum][Vreme],40,"%s",timestr);
- Reports[reportnum][ID] = playerid;
- SendClientMessage(playerid,-1,""ZELENA"[INFO] "BELA"Vas report je poslan,dobicete odgovor u najkracem roku!");
- new str[150];
- format(str,150, ""ZELENA"- "BELA"%s",text);
- SendClientMessage(playerid,-1,str);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment