Jump to content
  • 0

pomoc Brigáda [PK za Give systémem]


BugwebCz

Dotaz

Popis problému:


Ahoj .-)

potřeboval bych pomoci s tímto: viz sekce Kód.

Po Give to začne házet toto

[17:55:34] > Dostal by jsi player kill za Weapon Hack, kdyby jsi nebyl admin.
[17:55:37] [SERVER] Test BugwebCz dostal player kill od systému. Důvod: Weapon Hack
[17:55:38] Server closed the connection.

Chyby/varování kompilátoru a při běhu:
--

Kód:

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_WALK){
    if(IsPlayerInSphere(playerid,931.5630,-1095.9276,24.3412, 3) == 1)
    {
    if(brigada[playerid] == 1) return SendClientMessage(playerid, ZLUTA, "Uz delas brigadu");
    brigada[playerid] = 1;
    GivePlayerWeapon(playerid, 6, 1);
    }
    }
    return 1;
}

 




Dodatečné poznámky:
--

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0

Anticheat, který tam je, zjistil, že sis nějak obstaral zbraň jiným způsobem, než koupí... Pokud neupravíš ten AC, tak s tím nejde nic dělat(leda, pokud je tahle kontrola callback, tak zrušit jeho volání).

Edited by Ernst Remer
Link to comment
Share on other sites

  • 0
  • Hlavní moderátor

Kód patří do sekce Kód

Příště až budeš zakládat téma s žádostí o pomoc, dávej kód do vyhrazené části Kód. Děkuji.

Link to comment
Share on other sites

  • 0

Jméno neveřejné funkce jsi v .amx rozhodně neviděl icon_e_wink.gif

 

Máš pravdu icon_e_biggrin.gif, moja chyba, je to public. Inak pre autora:

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys & KEY_WALK)
	{
		if(!brigada[playerid])
		{
			brigada[playerid] = 1;
			CallRemoteFunction("GivePlayerWeaponEx", "iii", playerid, 6, 1));
		}
		else
		{
			SendClientMessage(playerid, -1, "Uz delas brigadu");
		}
		return 1;
	}
        return 1;
}
Edited by Kubko
Link to comment
Share on other sites

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...