[FilterScript] WLock v1.0 - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] WLock v1.0 (
/showthread.php?tid=529506)
WLock v1.0 -
Steel_ - 02.08.2014
Car Lock System by Wizdo
What does it do?
Re: WLock v1.0 -
GShock - 02.08.2014
Some screenies would be useful... but good job. +Raped
Re: WLock v1.0 -
Steel_ - 02.08.2014
I dont see the point in screenies for this script everyone knows what its used for
Quote:
Originally Posted by GShock
+Raped
|
Re: WLock v1.0 -
SpikY_ - 02.08.2014
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
Re: WLock v1.0 -
ShinichiKudou - 02.08.2014
@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)
Re: WLock v1.0 -
Steel_ - 02.08.2014
Quote:
Originally Posted by ShinichiKudou
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
Re: WLock v1.0 -
SpikY_ - 03.08.2014
Great job .. nice thank you
Re: WLock v1.0 -
ShinichiKudou - 03.08.2014
NGEN did you saw my post?
Please +REP me if it helped you
Re: WLock v1.0 -
Stinged - 06.08.2014
Useful for new players.
Quote:
Originally Posted by ShinichiKudou
NGEN did you saw my post?
Please +REP me if it helped you
|
This made my day. Haha.
Re: WLock v1.0 -
Iloveimpulse - 09.08.2014
Nice Dude!