27.04.2020, 02:14
eu troque do onplayerenterveicle para onplayerstatechange
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
if (GetPlayerVehicleID(playerid) == caminhao[0])
{
if(Player[playerid][Profissao]!=1)
{
ClearAnimations ( playerid ) ;
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COR_VERMELHO,"Vocк nгo й um Caminhoneiro");
}
}
}
return 1;
}