01.09.2017, 00:08
PHP код:
CMD:finishreport(playerid, params[])
{
new strglobal[80];
if(ActiveReport[playerid] == 0) return SCM(playerid, COLOR_WHITE, "You're not in a report session!");
if(ReportDuty[playerid] == 1) { playerid = ReportAdminID[playerid]; } // admin
if(ReportDuty[playerid] == 2) { toplayerid = ReportPlayerID[toplayerid]; } // jucator
ActiveReport[playerid] = 0;
ReportDuty[playerid] = 0;
ActiveReport[toplayerid] = 0;
ReportDuty[toplayerid] = 0;
format(strglobal, sizeof(strglobal), "* %s has stopped this report session.", GetName(playerid));
SCM(playerid, COLOR_YELLOW2, strglobal); // admin
SCM(toplayerid, COLOR_YELLOW2, strglobal); // jucator
ReportPlayerID[playerid] = INVALID_PLAYER_ID;
ReportAdminID[playerid] = INVALID_PLAYER_ID;
ReportPlayerrID[toplayerid] = INVALID_PLAYER_ID;
ReportAdminID[toplayerid] = INVALID_PLAYER_ID;
return 1;
}
PHP код:
ReportPlayerID[playerid] = INVALID_PLAYER_ID;
ReportAdminID[playerid] = INVALID_PLAYER_ID;
ReportPlayerrID[toplayerid] = INVALID_PLAYER_ID;
ReportAdminID[toplayerid] = INVALID_PLAYER_ID;
daca te-am ajutat, +rep.
P.S.: ce gamemode folosesti?!