SA-MP Forums Archive
Anti-db Help - 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)
+--- Thread: Anti-db Help (/showthread.php?tid=499340)



Anti-db Help - TheLastShadow - 07.03.2014

I want a anti-db filterscript that takes the player's weapons when enter in car and appear a message (I take weapons), and take him back when he exit from car and appear a message (I give you back weapons). Please help me.


Re: Anti-db Help - Chrillzen - 07.03.2014

Under OnPlayerStateChange.

pawn Код:
if(newstate==PLAYER_STATE_DRIVER)
{
    SetPlayerArmedWeapon(playerid, 0);
    SendClientMessage(playerid, -1, "I take weapons.");
}
Under OnPlayerExitVehicle.

pawn Код:
SendClientMessage(playerid, -1, "I give you back weapons.");



Re: Anti-db Help - TheLastShadow - 07.03.2014

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
Under OnPlayerStateChange.

pawn Код:
if(newstate==PLAYER_STATE_DRIVER)
{
    SetPlayerArmedWeapon(playerid, 0);
    SendClientMessage(playerid, -1, "I take weapons.");
}
Under OnPlayerExitVehicle.

pawn Код:
SendClientMessage(playerid, -1, "I give you back weapons.");
Thx bro it work