COMMAND:rr(playerid, params[]) { if (PlayerInfo[playerid][pAdministrator] < 1) { SendClientMessage(playerid, COLOR_GREY,"Nu esti autorizat sa folosesti aceasta comanda."); return 1; } new iPlayerID, szReason[128], szMessage[128]; if(sscanf(params, "us[128]", iPlayerID, szReason)) { return SendClientMessage(playerid, COLOR_GRAD2, "FOLOSIRE: {FFFFFF}/rreport [PlayerID/Nume] [Motiv]"); } if(!IsPlayerConnected(iPlayerID)) { SendClientMessage(playerid, COLOR_LIGHTRED, "Jucatorul respectiv nu este conectat !"); return 1; } if(PlayerInfo[iPlayerID][pReport] == -1) { return SendErrorMessage(playerid, "* Un admininistrator a dat deja un raspuns la acest repoart sau jucatorul respectiv nu a dat report !"); } if(strlen(szReason) > 30) { new pos = 30; if(pos < 30-1) pos = 30; format(szMessage, 128,"[INFO] Administratorul %s ti-a respins reportul. Motiv: %.*s ...", GetPlayerNameEx(playerid), pos, szReason); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"... %s", szReason[pos]); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"[AdmCmd] %s (%d) i-a refuzat reportul lui %s (%d). Motiv: %.*s ...", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(iPlayerID), iPlayerID, pos, szReason); AdministratorMessage(COLOR_ORANGE,szMessage,1); format(szMessage, 128,"... %s", szReason[pos]); AdministratorMessage(COLOR_ORANGE,szMessage,1); } else { format(szMessage, 128,"[INFO] Administratorul %s ti-a respins reportul. Motiv: %s", GetPlayerNameEx(playerid), szReason); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"[AdmCmd] %s (%d) i-a refuzat reportul lui %s (%d). Motiv: %s", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(iPlayerID), iPlayerID, szReason); AdministratorMessage(COLOR_ORANGE,szMessage,1); } format(szMessage, 128,"[ADMIN] I-ai refuzat reportul lui %s (%d).", GetPlayerNameEx(iPlayerID), iPlayerID); SendClientMessage(playerid,COLOR_GREY,szMessage); PlayerInfo[iPlayerID][pReport] = -1; return 1; }
COMMAND:rq(playerid,params[]) { if(!PlayerInfo[playerid][pAdministrator]) { if (PlayerInfo[playerid][pTester] == 0) { SendClientMessage(playerid, COLOR_GREY,"Nu esti autorizat sa folosesti aceasta comanda."); return 1; } } new iPlayerID, szReason[128], szMessage[128]; if(sscanf(params, "us[128]", iPlayerID, szReason)) { return SendClientMessage(playerid, COLOR_GRAD2, "FOLOSIRE: {FFFFFF}/rq [PlayerID/Nume] [Motiv]"); } if(PlayerInfo[iPlayerID][pQuestion] == -1) { return SendErrorMessage(playerid, "* Un tester a respins deja aceasta intrebare sau jucatorul respectiv nu a pus una !"); } if(strlen(szReason) > 30) { new pos = 30; if(pos < 30-1) pos = 30; format(szMessage, 128,"[INFO] Testerul %s ti-a respins intrebarea. Motiv: %.*s ...", GetPlayerNameEx(playerid), pos, szReason); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"... %s", szReason[pos]); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"[TesterCmd] %s (%d) i-a refuzat intrebarea lui %s (%d). Motiv: %.*s ...", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(iPlayerID), iPlayerID, pos, szReason); AdministratorMessage(COLOR_ORANGE,szMessage,1); format(szMessage, 128,"... %s", szReason[pos]); AdministratorMessage(COLOR_ORANGE,szMessage,1); } else { format(szMessage, 128,"[INFO] Testerul %s ti-a respins intrebarea. Motiv: %s", GetPlayerNameEx(playerid), szReason); SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage); format(szMessage, 128,"[TestrCmd] %s (%d) i-a refuzat intrebarea lui %s (%d). Motiv: %s", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(iPlayerID), iPlayerID, szReason); AdministratorMessage(COLOR_ORANGE,szMessage,1); } format(szMessage, 128,"[TESTER] I-ai refuzat intrebarea lui %s (%d).", GetPlayerNameEx(iPlayerID), iPlayerID); SendClientMessage(playerid,COLOR_GREY,szMessage); PlayerInfo[iPlayerID][pQuestion] = -1; return 1; }
SCRIPTUL FUNCTIONEAZA DOAR PE GAMEMODE-UL IBP SI IMI REZERV DREPTUL SI CREDITELE PENTRU ACESTE SCRIPTURI.
|