[FilterScript] WLock v1.0
#1

Car Lock System by Wizdo

What does it do?

This script locks your car by pressing LALT and unlocks it by pressing TAB

Download link:
http://pastebin.com/RHXw7CUY
Reply
#2

Some screenies would be useful... but good job. +Raped
Reply
#3

I dont see the point in screenies for this script everyone knows what its used for

Quote:
Originally Posted by GShock
View Post
+Raped
Reply
#4

bro i like this script . but will you change the keys ..

i mean when we press 2 [not in numpad] so its lock and when we press it again so its unlock .. can you make

it will be nice

Btw +rep <3 love this
Reply
#5

@NGEN here is what you requested

pawn Code:
#include <a_samp>

#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
   
new PlayerVehLocked[MAX_PLAYERS];
   
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_ACTION))//TAB KEY
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
          if(PlayerVehLocked[playerid] == 1)
          {
            for(new i = 0; i < MAX_PLAYERS; i++)
            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,false,false);
            GameTextForPlayer(playerid, "Unlocked", 5000, 3);
          }
          else if(PlayerVehLocked[playerid] == 0)
          {
            for(new i = 0; i < MAX_PLAYERS; i++)
            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,false,true);
            GameTextForPlayer(playerid, "Locked", 5000, 3);
          }
           
        }
    }
    return 1;
}
//Press Tab to lock/unlock
And in his original script there is some bugs you need to press left alt then tab to unlock (will switch windows) because its inside the brackets of lALT ( i used notepad++ to check)
Reply
#6

Quote:
Originally Posted by ShinichiKudou
View Post
And in his original script there is some bugs you need to press left alt then tab to unlock (will switch windows) because its inside the brackets of lALT ( i used notepad++ to check)
I just found that myself thanks for telling
Reply
#7

Great job .. nice thank you
Reply
#8

NGEN did you saw my post?

Please +REP me if it helped you
Reply
#9

Useful for new players.

Quote:
Originally Posted by ShinichiKudou
View Post
NGEN did you saw my post?

Please +REP me if it helped you
This made my day. Haha.
Reply
#10

Nice Dude!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)