[Pomoc] Anti cheat i tazer.

Započeo EdisB
11. Mar. 2014. Zaključano
362
pregleda
2
postova
EdisB
3
Wheel Man
11. Mar. 2014.
Skripta koju koristim: Los Santos Life Roleplay, sa UCPom i MYSQLom.
Detaljan opis problema: Znaci napravio sam OPSP tazer, onaj sto da silenced pistolj, i sve odlicno radi, ali kada kucam /tazer i stvori se taj tazer, odma mi ga anticheat oduzme zbog sigurnosti. Sad ne znam kako da u skripti napravim da se taj pistolj sigurno da, a da anticheat ne reaguje.
Dio skripte:Evo komanda
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
{
// We make it again for Cops
    if(PlayerInfo == 1 || PlayerInfo == 2 ||  PlayerInfo == 14)
    {
        if(IsPlayerInAnyVehicle(playerid)) // Checks if the player is in a vehicle.
        {
            SendClientMessage(playerid, 0xFF0000FF, "You can't use this command while in a car!");
            return 1;
        }
        if(pTazer == 0) // If the player has no tazer withdrawn.
        {
            GivePlayerWeapon(playerid, 23, 20); // Gives a SD.
            pTazer = 1; // Sets the var to true.
            return 1;
        }
        else if(pTazer == 1) // If the player has the tazer withdrawn to holster it.
        {
            GivePlayerWeapon(playerid, 24, 100); // Gives a deagle.
            pTazer = 0; // Sets the var to false.
            return 1;
        }
    }// Not a cop.
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
EdisB
3
Wheel Man
11. Mar. 2014.
Rijeseno, stavio sam GivePlayerWeaponEx

Lockajte!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha