little help
#1

Is there a way to bypass or make this weapon legit in my server? Cause my anti-cheat detects that this weapons below are not valid and kicked me out or the server lol.

Quote:

AddPlayerClass(108, -2571.5791,328.5180,10.5625,167.0832,25, 100, 22, 100, 5, 1); // 25, 100, 22, 100, 5, 1
AddPlayerClass(109, -2558.4324,327.3436,15.9453,182.3667,25, 100, 22, 100, 5, 1); // 25, 100, 22, 100, 5, 1
AddPlayerClass(110, -2557.3003,313.2026,15.9453,356.9417,25, 100, 22, 100, 5, 1); // 25, 100, 22, 100, 5, 1

Код:
stock GivePlayerWeaponEx(playerid,weaponid,ammo)
{
    PlayerWeapons[playerid][weaponid]=true;
    GivePlayerWeapon(playerid,weaponid,ammo);
}
Tried this stock to my /shop and it makes the weapon I bought legit and that't not a problem.
Reply
#2

You can create a function that adds player class so you can set the weaponids are used to true but I'm not really sure how you'd do that later on, when a player re-spawns (I think it gives those weapons).
Reply
#3

I have an Idea. Coz basically I was making a TDM gamemode.

First: I'll make it as a default (No weapons)

Quote:
Under OnfilterscriptInit
AddPlayerClass(108, -2571.5791,328.5180,10.5625,167.0832,0, 0, 0, 0, 0, 0);
AddPlayerClass(109, -2558.4324,327.3436,15.9453,182.3667,0, 0, 0, 0, 0, 0);
AddPlayerClass(110, -2557.3003,313.2026,15.9453,356.9417,0, 0, 0, 0, 0, 0);

Then under onplayerspawn:

Код HTML:
        if(Gangs[playerid] == TEAM_MEXICANS)
	{
	    SetPlayerColor(playerid, 0xFFFF00FF);
            SetPlayerTeam(playerid, 0);
            GivePlayerWeaponEx(//weapon 1)
            GivePlayerWeaponEx(//weapon 2)
            GivePlayerWeaponEx(//weapon 3)
	}
	if(Gangs[playerid] == TEAM_BIKER)
	{
	    SetPlayerColor(playerid, 0xABCDEFFF);
	    SetPlayerTeam(playerid, 1);
            GivePlayerWeaponEx(//weapon 1)
            GivePlayerWeaponEx(//weapon 2)
            GivePlayerWeaponEx(//weapon 3)
	}
	if(Gangs[playerid] == TEAM_MAFIA)
	{
	    SetPlayerColor(playerid, 0x636352FF);
	    SetPlayerTeam(playerid, 2);
            GivePlayerWeaponEx(//weapon 1)
            GivePlayerWeaponEx(//weapon 2)
            GivePlayerWeaponEx(//weapon 3)
	}
	if(Gangs[playerid] == TEAM_YAKUZA)
	{
	    SetPlayerColor(playerid, 0xAA3333FF);
	    SetPlayerTeam(playerid, 3);
            GivePlayerWeaponEx(//weapon 1)
            GivePlayerWeaponEx(//weapon 2)
            GivePlayerWeaponEx(//weapon 3)
	}
Do you think this will make the weapon legit or server sided?

I haven't tested it yet. I'm in the office.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)