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[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 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[playerid] == 0) // If the player has no tazer withdrawn.
{
GivePlayerWeapon(playerid, 23, 20); // Gives a SD.
pTazer[playerid] = 1; // Sets the var to true.
return 1;
}
else if(pTazer[playerid] == 1) // If the player has the tazer withdrawn to holster it.
{
GivePlayerWeapon(playerid, 24, 100); // Gives a deagle.
pTazer[playerid] = 0; // Sets the var to false.
return 1;
}
}// Not a cop.
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Rijeseno, stavio sam GivePlayerWeaponEx
Lockajte!