24.02.2010, 17:33
Im new and my friend gave me this cool code it works but everyone can use it
I need only skin 120 to be able to use them
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_CROUCH))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,213.8026,1 876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
}
if (RELEASED(KEY_CROUCH))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
if (HOLDING(KEY_SUBMISSION))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 1);
}
if (RELEASED(KEY_SUBMISSION))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
return 1;
}
Please help
I need only skin 120 to be able to use them
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_CROUCH))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,213.8026,1 876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
}
if (RELEASED(KEY_CROUCH))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
if (HOLDING(KEY_SUBMISSION))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 1);
}
if (RELEASED(KEY_SUBMISSION))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
return 1;
}
Please help