17.07.2010, 18:43
Hello, I want to make a picklock script, but I got a script, that if some one enters the car from a another gang member it kicks him out of the car.
if(CarID == sevillecar12)
{
if(PlayerColour == TEAM_SEVILLE )
{
//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);
}
}
Is there any possible script to picklock the car with "if" or "else?
if(CarID == sevillecar12)
{
if(PlayerColour == TEAM_SEVILLE )
{
//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);
}
}
Is there any possible script to picklock the car with "if" or "else?