17.07.2010, 18:50
Listen, this kicks the player that enters the car from another gang, I am asking here if it is possible to make with a "PlayerInfo" script to enter the car with picklock... like...
if(CarID == sevillecar12)
{
if(PlayerColour == TEAM_SEVILLE )
{
else
}
if(PlayerData[playerid][picklock]=1)
}
{
//Message to team when enters car?
}
else
{
SendClientMessage(playerid, RED,"SERVER MESSAGE: You are not a member of the Seville Families.");
//SendClientMessage(playerid, YELLOW, "SERVER MESSAGE: If you have a picklock, you can brake into the vehicle. Read /picklock.");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X+2, Y+2, Z+2);
}
}
if(CarID == sevillecar12)
{
if(PlayerColour == TEAM_SEVILLE )
{
else
}
if(PlayerData[playerid][picklock]=1)
}
{
//Message to team when enters car?
}
else
{
SendClientMessage(playerid, RED,"SERVER MESSAGE: You are not a member of the Seville Families.");
//SendClientMessage(playerid, YELLOW, "SERVER MESSAGE: If you have a picklock, you can brake into the vehicle. Read /picklock.");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X+2, Y+2, Z+2);
}
}