SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 12/05/2010, 02:51 PM   #1
ArTisT
Big Clucker
 
Join Date: Mar 2009
Posts: 99
Reputation: 0
Default Car Lock abusing

Quote:
if(strcmp(cmd, "/vehlock", true) == 0)
{
new keycar = PlayerInfo[playerid][pPcarkey];
if(keycar != 999)
{
new locked[256];
locked = strtok(cmdtext, idx);
if(CarInfo[keycar][cLock] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 0;
OnPropUpdate();
return 1;
}
else if(CarInfo[keycar][cLock] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 1;
OnPropUpdate();
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle at slot 1");
return 1;
}
}
There aint any problems with locking cars the cmd works fine.. but... theres a bug if you press F then wait 1sec and press F more times u can enter the cars.. anyone has an idea ?
ArTisT is offline  
Old 12/05/2010, 02:53 PM   #2
lewisno7
Little Clucker
 
Join Date: Mar 2008
Posts: 25
Reputation: 0
Default Re: Car Lock abusing

What car system is this, or is it planted into your GM?
lewisno7 is offline  
Old 12/05/2010, 02:56 PM   #3
ArTisT
Big Clucker
 
Join Date: Mar 2009
Posts: 99
Reputation: 0
Default Re: Car Lock abusing

gamemod nobodys know the bug only 2 persons ^^
ArTisT is offline  
Old 12/05/2010, 04:00 PM   #4
smeti
Huge Clucker
 
smeti's Avatar
 
Join Date: Sep 2008
Posts: 291
Reputation: 32
Default Re: Car Lock abusing

http://wiki.sa-mp.com/wiki/OnVehicleStreamIn
http://wiki.sa-mp.com/wiki/SetVehicleParamsForPlayer
smeti is offline  
Old 12/05/2010, 04:15 PM   #5
ArTisT
Big Clucker
 
Join Date: Mar 2009
Posts: 99
Reputation: 0
Default Re: Car Lock abusing

ty for links

hmm whats wrong i checked the links didnt found anything how it can help me..
ArTisT is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to lock a car for EVERYONE...? introzen Help Archive 14 04/03/2010 12:22 AM
I think im abusing VARS Paladin Help Archive 9 02/08/2009 07:18 PM
/lock. -eXo Help Archive 2 19/04/2009 11:48 PM
need help with lock oreniko Help Archive 5 16/04/2009 11:02 AM


All times are GMT. The time now is 02:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.