[FilterScript] Refuse report + refuse askq ( Pentru RolePlay )
#1

Aceste systeme le detin si eu. Am decis sa le fac publice, daca tot se bucura niste amatori ca FrankAdv, de ce sa nu se bucure si altii ?

SCRIPTUL FUNCTIONEAZA DOAR PE GAMEMODE-UL IBP SI IMI REZERV DREPTUL SI CREDITELE PENTRU ACESTE SCRIPTURI.

Refuse report :

Код:
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;
}
Refuse askq :
Код:
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;
}
Bafta cu ele !
Reply
#2

Quote:
Originally Posted by QuizakaBeto
Посмотреть сообщение
SCRIPTUL FUNCTIONEAZA DOAR PE GAMEMODE-UL IBP SI IMI REZERV DREPTUL SI CREDITELE PENTRU ACESTE SCRIPTURI.
Imi place faza asta, ce sa zic... De parca era nevoie pentru 50 de linii care oricine le poate scrie... Ai mai pus si tagu de FilterScript cand e Code Snippet...

Poate ajuta un scripter incepator, ca in rest nu stiu de ce ar folosi cineva chestiile astea...
Reply
#3

10MIN, special pentru cei incepatori le-am dat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)