Anti-DB script help
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new estado = GetPlayerState(playerid);
    if (IsPlayerInAnyVehicle(playerid) && estado == PLAYER_STATE_DRIVER)
    {
        if (newkeys == KEY_FIRE && KEY_LOOK_RIGHT || newkeys == KEY_FIRE && KEY_LOOK_LEFT || newkeys == KEY_ACTION && KEY_LOOK_LEFT || newkeys == KEY_ACTION && KEY_LOOK_RIGHT)
        {
            new Float:x,Float:y, Float:z;
            GetPlayerPos(playerid,Float:x,Float:y, Float:z);
            SetPlayerPos(playerid,Float:x+10,Float:y+1, Float:z);
            SendClientMessage(playerid,0xcc3300ff,"DANGER: Remove From vehicule for Drive-By");
        }
    }
}
Try this code, should work.
Reply


Messages In This Thread
Anti-DB script help - by [SOB]Chris - 13.09.2009, 21:15
Re: Anti-DB script help - by [SOB]Chris - 13.09.2009, 22:00
Re: Anti-DB script help - by coole210 - 13.09.2009, 22:15
Re: Anti-DB script help - by [SOB]Chris - 13.09.2009, 22:21
Re: Anti-DB script help - by Blades - 17.09.2009, 13:10
Re: Anti-DB script help - by Finn - 17.09.2009, 13:32
Re: Anti-DB script help - by Zeex - 17.09.2009, 13:43
Re: Anti-DB script help - by Finn - 17.09.2009, 13:49

Forum Jump:


Users browsing this thread: 2 Guest(s)