25.02.2012, 22:53
If that doesnt work use "OnPlayerStateChange" This code should work:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
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); return SendClientMessage(playerid, COLOR_WHITE, "Ne ste del od mafijata.");
}
}
}