25.02.2012, 22:31
Try this, its what I use "OnPlayerEnterVehicle":
pawn Код:
if(IsAYCar(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{
SendClientMessage(playerid, COLOR_WHITE, "You are a member from the mafia.");
}
else
{
RemovePlayerFromVehicle(playerid);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
SendClientMessage(playerid, COLOR_WHITE, "Ne ste del od mafijata.");
}
}