Jump to content
  • 0

Question

Posted (edited)

Am o problema cu GM-ul WSTER RPG

Pur si simplu, un player da /cheats pe altul. Cand vreau sa verific, dau /cheats si dau /spec pe acel player.. in acel moment mi se pune punct la raport admin.. dar nu dispare din /cheaters.. si nici comanda /cr  sau /dr nu functioneaza, zice ca nu are report 

Sa imi ziceti ce comenzi trebuie sa va arat ca sa ma ajutati.

 

EDIT : AM OBSERVAT CA DACA APARE /CHEATS DE LA ADMBOT ADICA WARNING SI DAU /SPEC DISPARE DIN /CHEATERS, DAR DACA DA UN PLAYER /CHEATS, DUPA CE DAU /SPEC NU MAI APARE IN /CHEATERS MOTIV : AIMBOT CI APARE - NULL .. TREBUIA SA DISPARA TOT

 

Deci, de exeplu tu dai /cheats pe mine cu motivul aimbot.. dai /cheats 1 aimbot ( 1 fiind id meu )
Adminului ii apare /cheaters - X ( id x, level x ) cheats - aimbot ( x sunt eu, level-ul meu si id meu )
adminul da /spec pe tine..
in loc sa dispara din /cheats X ( id x, level x ) cheats - aimbot , apare la fel doar ca in loc de aimbot scrie null
adica X ( id x, level x ) cheats - NULL

Edited by andrei20141

22 answers to this question

Recommended Posts

  • 0
Posted
Acum 2 ore, andrei20141 a spus:

Am o problema cu GM-ul WSTER RPG

Pur si simplu, un player da /cheats pe altul. Cand vreau sa verific, dau /cheats si dau /spec pe acel player.. in acel moment mi se pune punct la raport admin.. dar nu dispare din /cheaters.. si nici comanda /cr  sau /dr nu functioneaza, zice ca nu are report 

Sa imi ziceti ce comenzi trebuie sa va arat ca sa ma ajutati.

 

EDIT : AM OBSERVAT CA DACA APARE /CHEATS DE LA ADMBOT ADICA WARNING SI DAU /SPEC DISPARE DIN /CHEATERS, DAR DACA DA UN PLAYER /CHEATS, DUPA CE DAU /SPEC NU MAI APARE IN /CHEATERS MOTIV : AIMBOT CI APARE - NULL .. TREBUIA SA DISPARA TOT

 

Deci, de exeplu tu dai /cheats pe mine cu motivul aimbot.. dai /cheats 1 aimbot ( 1 fiind id meu )
Adminului ii apare /cheaters - X ( id x, level x ) cheats - aimbot ( x sunt eu, level-ul meu si id meu )
adminul da /spec pe tine..
in loc sa dispara din /cheats X ( id x, level x ) cheats - aimbot , apare la fel doar ca in loc de aimbot scrie null
adica X ( id x, level x ) cheats - NULL

pune comanda /cheats si /spec

  • 0
Posted
Acum 4 minute, andrei20141 a spus:

poti pune tu unde tr si sa lasi cod pe pastebin pls?

  1.   else if(reportreason[id] == 3 && PlayerInfo[playerid][pAdmin] >= 1 || HaveCheats[id] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  2.                         {
  3.                             format(string, sizeof(string), "Admin %s is now spectating %s (reported for cheats).",sendername,giveplayer);
  4.                             ReportTime[id] = 0;
  5.                             format(reporttext[id], 30, "NULL");
  6.                             format(cheattext[id], 30, "NULL");
  7.                             reportcheater[id] = -1;
  8.                             reportreason[id] = 0;
  9.                             AreCits[id] = 0;
  10.                             CheatsReason[id] = "NULL";
  11.                             Citsreas[id] = "NULL";
  12.                             PlayerInfo[playerid][pCrPlayers]++;
  13.                             Update(playerid, pCrPlayersx);
  14.                             if(playerreported[id] != -1)
  15.                             {
  16.                                 reportreason[playerreported[id]] = 0;
  17.                             }
  18.                             playerreported[id] = -1;
  19.                         }
  • 0
Posted

Mane, iti multumesc mult, sunt incepator si d-asta am nevoie de ajutor..

In functia EstiFondator, cum pot adauga mai multi?

o ai aici:

public EstiFondator(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		new nume[512];
        GetPlayerName(playerid, nume, sizeof(nume));
        if((strcmp(nume, "Andrei.", true) == 0)) 
        {
		    return 1;
		}
	}
	return 0;
}

 

  • 0
Posted
3 minutes ago, andrei20141 said:

Mane, iti multumesc mult, sunt incepator si d-asta am nevoie de ajutor..

In functia EstiFondator, cum pot adauga mai multi?

o ai aici:


public EstiFondator(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		new nume[512];
        GetPlayerName(playerid, nume, sizeof(nume));
        if((strcmp(nume, "Andrei.", true) == 0)) 
        {
		    return 1;
		}
	}
	return 0;
}

 

if((strcmp(nume, "Andrei.", true) == 0) || (strcmp(nume, "Nume2", true) == 0) || (strcmp(nume, "Nume3", true) == 0)) 
  • 0
Posted (edited)
Acum 44 minute, valivaly96 a spus:
  1.   else if(reportreason[id] == 3 && PlayerInfo[playerid][pAdmin] >= 1 || HaveCheats[id] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  2.                         {
  3.                             format(string, sizeof(string), "Admin %s is now spectating %s (reported for cheats).",sendername,giveplayer);
  4.                             ReportTime[id] = 0;
  5.                             format(reporttext[id], 30, "NULL");
  6.                             format(cheattext[id], 30, "NULL");
  7.                             reportcheater[id] = -1;
  8.                             reportreason[id] = 0;
  9.                             AreCits[id] = 0;
  10.                             CheatsReason[id] = "NULL";
  11.                             Citsreas[id] = "NULL";
  12.                             PlayerInfo[playerid][pCrPlayers]++;
  13.                             Update(playerid, pCrPlayersx);
  14.                             if(playerreported[id] != -1)
  15.                             {
  16.                                 reportreason[playerreported[id]] = 0;
  17.                             }
  18.                             playerreported[id] = -1;
  19.                         }

Mane, acum dispare din /cheaters dar nu mai dispare de sub hud unde scrie: Reports:0 / Cheaters: 1

Si ramane si in /reports ..

Edited by andrei20141
  • 0
Posted
57 minutes ago, andrei20141 said:

Mane, acum dispare din /cheaters dar nu mai dispare de sub hud unde scrie: Reports:0 / Cheaters: 1

Si ramane si in /reports ..

lasa si arecits si havecheats egale cu 0

  • 0
Posted
CMD:spec(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
	if(IsPlayerConnected(playerid))
 	{
		if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
		{
			new id,giveplayer[25],string[256],sendername[25];
			if(sscanf(params, "u", id)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/spec <Name/Playerid>");
			{
				if(IsPlayerConnected(id))
				{
				    if(id != INVALID_PLAYER_ID)
				    {
				    	if(id == playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "Nu poti folosi /spec pe tine.");
				    	if(PlayerInfo[id][pAdmin] >= 6 && PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "Nu poti folosi /spec pe admini de level 6+");
						if(Spectate[playerid] == -1)
						{
							BeforeSpectate[playerid][pState] = GetPlayerState(playerid);
							BeforeSpectate[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
							BeforeSpectate[playerid][pInt] = GetPlayerInterior(playerid);
							BeforeSpectate[playerid][pSpectating] = true;
							new Float: x, Float: y, Float: z;
							GetPlayerPos(playerid, x, y, z);

							if(!IsPlayerInAnyVehicle(playerid))
							{
								BeforeSpectate[playerid][pOldPos][0] = x;
								BeforeSpectate[playerid][pOldPos][1] = y;
								BeforeSpectate[playerid][pOldPos][2] = z;
							}
							else
								BeforeSpectate[playerid][pInVehicle] = GetPlayerVehicleID(playerid);
						}
				        Spectate[playerid] = id;
						new Float:health;
						GetPlayerHealthEx(Spectate[playerid], health);
						GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						if(reportreason[id] == 0 && HaveCheats[id] == 0)
						{
							format(string, sizeof(string), "Admin/Helper %s is now spectating %s.",sendername,giveplayer);
						}
						else if(reportreason[id] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
						{
							format(string, sizeof(string), "Admin %s is now spectating %s (reported for being stuck).",sendername,giveplayer);
							ReportTime[id] = 0;
							format(reporttext[id], 30, "NULL");
							format(cheattext[id], 30, "NULL");
							reportcheater[id] = -1;
							reportreason[id] = 0;
							PlayerInfo[playerid][pCrPlayers]++;
                            Update(playerid, pCrPlayersx);
							if(playerreported[id] != -1)
							{
								reportreason[playerreported[id]] = 0;
							}
							playerreported[id] = -1;
						}
						else if(reportreason[id] == 2 && PlayerInfo[playerid][pAdmin] >= 1)
						{
							format(string, sizeof(string), "Admin %s is now spectating %s (reported for DM).",sendername,giveplayer);
							ReportTime[id] = 0;
							format(reporttext[id], 30, "NULL");
							format(cheattext[id], 30, "NULL");
							reportcheater[id] = -1;
							reportreason[id] = 0;
							PlayerInfo[playerid][pCrPlayers]++;
                            Update(playerid, pCrPlayersx);
							if(playerreported[id] != -1)
							{
								reportreason[playerreported[id]] = 0;
							}
							playerreported[id] = -1;
						}
                        else if(reportreason[id] == 3 && PlayerInfo[playerid][pAdmin] >= 1 || HaveCheats[id] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            format(string, sizeof(string), "Admin %s is now spectating %s (reported for cheats).",sendername,giveplayer);
                            ReportTime[id] = 0;
                            format(reporttext[id], 30, "NULL");
                            format(cheattext[id], 30, "NULL");
                            reportcheater[id] = -1;
                            reportreason[id] = 0;
                            AreCits[id] = 0;
                            CheatsReason[id] = "NULL";
                            Citsreas[id] = "NULL";
                            PlayerInfo[playerid][pCrPlayers]++;
                            Update(playerid, pCrPlayersx);
                            if(playerreported[id] != -1)
                            {
                                reportreason[playerreported[id]] = 0;
                            }
                            playerreported[id] = -1;
                        }
						KillTimer(timerreport[id]);
						ABroadCast(COLOR_YELLOW,string,1);
						format(string, sizeof(string), "(%d) %s | Level: %d | Health: %.0f | AFK: %d | Duty: %d | Ping: %d",Spectate[playerid],giveplayer,PlayerInfo[Spectate[playerid]][pLevel],health,IsPlayerAFK[Spectate[playerid]],OnDuty[Spectate[playerid]],GetPlayerPing(Spectate[playerid]));
						SendClientMessage(playerid, COLOR_DARKPINK, string);
						TogglePlayerSpectating(playerid, 1);
						if(IsPlayerInAnyVehicle(Spectate[playerid]))
						{
						    new carid = GetPlayerVehicleID(Spectate[playerid]);
						    PlayerSpectateVehicle(playerid, carid);
							SpectateState[id] = 2;
						}
						else
						{
						    PlayerSpectatePlayer(playerid, Spectate[playerid]);
							SpectateState[id] = 1;
						}
						PlayerTextDrawSetString(playerid, TextDrawSpec[playerid][1], "LOADING...");
						PlayerTextDrawShow(playerid, TextDrawSpec[playerid][1]);
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
				}
			}
   		}
		else
		{
			SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
			return 1;
		}
	}
	return 1;
}

 

  • 0
Posted
Acum 2 ore, andrei20141 a spus:

cineva?

Daca am inteles bine dupa ce am schimbat variabila ca sa nu mai apara pe /cheaters nu mai dispare din Text draw. Atunci modifici asa:

  1. else if(reportreason[id] == 3 && PlayerInfo[playerid][pAdmin] >= 1 || HaveCheats[id] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  2.                         {
  3.                             format(string, sizeof(string), "Admin %s is now spectating %s (reported for cheats).",sendername,giveplayer);
  4.                             ReportTime[id] = 0;
  5.                             format(reporttext[id], 30, "NULL");
  6.                             format(cheattext[id], 30, "NULL");
  7.                             reportcheater[id] = -1;
  8.                             reportreason[id] = 0;
  9.                             AreCits[id] = 0;
  10.                             HaveCheats[id]=0;
  11.                             CheatsReason[id] = "NULL";
  12.                             Citsreas[id] = "NULL";
  13.                             PlayerInfo[playerid][pCrPlayers]++;
  14.                             Update(playerid, pCrPlayersx);
  15.                             if(playerreported[id] != -1)
  16.                             {
  17.                                 reportreason[playerreported[id]] = 0;
  18.                             }
  19.                             playerreported[id] = -1;
  20.                         }

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.