23.09.2012, 12:07
I've just told you...
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 0)
{
if(IsAnFbiCar(vehicleid))
{
if(PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
{
SendClientMessage(playerid, COLOR_WHITE,"Welcome to FBI vehicle.");
}
else
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+3);
SendClientMessage(playerid, COLOR_WHITE,"You don't have keys of this vehicle.");
}
}
}
return 1;
}