Get SPECIAL_ACTION_USEJETPACK bug. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Get SPECIAL_ACTION_USEJETPACK bug. (
/showthread.php?tid=99906)
Get SPECIAL_ACTION_USEJETPACK bug. -
DaKill - 01.10.2009
When I get into a vehicle that starts the action
SPECIAL_ACTION_USEJETPACK - AntyCheat kick/ban. When I get a jetpack - no starts
SPECIAL_ACTION_USEJETPACK. In 0.2X is okay, in 0.3 no.
Very sorry for my bad English, im from Poland.
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
SpiderPork - 01.10.2009
It's your script.
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
DaKill - 01.10.2009
@up
No, im used
GetPlayerSpecialAction in
OnPlayerUpdate. In SA-MP 0.2X is okay.
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
dugi - 01.10.2009
Post your code as it works fine.
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
DaKill - 01.10.2009
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
// none
return 1;
}
Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
// Anty Cheat
if(!IsPlayerAdmin(playerid))
{
if(GetPlayerWeapon(playerid) == WEAPON_TEARGAS || GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER || GetPlayerWeapon(playerid) == WEAPON_FLAMETHROWER || GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45)
{
SendPlayerMessageToAll(gPlayerID("Devil"), "A! Tu Cię mam.");
BanEx2(gPlayerID("Devil"), playerid, "niedozwolona broń (cheat)");
return 1;
}
if(GetPlayerSpecialAction(playerid, 2))
{
format(string, sizeof(string), "INFO: %s został zbanowany przez system. Powуd: JetPack.", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);
Ban(playerid);
return 1;
}
}
[...]
}
No warnings and errors.
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
dugi - 01.10.2009
Like i guessed, your code is wrong.
It should be:
pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
your code
}
Re: Get SPECIAL_ACTION_USEJETPACK bug. -
DaKill - 01.10.2009
Oops. Thanks and sorry. Delete / close topic.