28.12.2012, 20:02
I want to know how player can unlock the with toolkit?
my codes like this:
my codes like this:
PHP код:
ew Float: x, Float: y, Float: z;
if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)// The problem is here this mean only if is your car you can un lock it how i can make it if you have toolkit you can unlock it?
{
new ownerid = PlayerInfo[playerid][pVehicleKeysFrom];
if(IsPlayerConnected(ownerid))
{
new d = PlayerInfo[playerid][pVehicleKeys];
if(PlayerVehicleInfo[ownerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) GetVehiclePos(PlayerVehicleInfo[ownerid][d][pvId], x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))