29.06.2016, 20:32
do modo que ele mostrou nгo ira funcionar..
PHP код:
new Caminhao[1];
Caminhao[0] = CreateVehicle(515 ,2154.7002000,-2290.8994000,15.1001600,223.9950000,79,83,0);
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger){
for( new c; c < sizeof(Caminhao); c++ ){
if(GetPlayerVehicleID(vehicleid) == Caminhao[c] ){
if( /* var profissao */ == caminhoneiro ){
print("Vocк й caminhoneiro");
break;
}else{
RemovePlayerFromVehicle(playerid);
print("Vocк nгo й um caminhoneiro");
break;
}
}
}
}
return 1;
}