16.07.2014, 19:36
tem que colocar esta funзгo dentro do public OnPlayerEnterVehicle
Exemplo:
Exemplo:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsACopCar(vehicleid) && !IsACop(playerid) && !ispassenger) { RemovePlayerFromVehicle(playerid); new Float:x,Float:y,Float:z,Float:a; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a); SetPlayerPos(playerid, x, y, z+0.3); SetPlayerFacingAngle(playerid, a); SendClientMessage(playerid, TEAM_CYAN_COLOR, "Vocк nгo pode entrar em uma viatura policial !"); } return 1; }