Zdarec, potřeboval bych od nějakýho dobrýho človíčka radu...mam udělanej cp aby doněj muse hráč vjet s téměr nepoškozenym autem ale nwm jak mam udělat aby tam musel vjet jen s určitym auten např. s clovrem ID 542....Takže když tam vjde stimto autem bud to napíše že udělal atoškolu nebo neudělal autoškolu ale když tam vjede jinym autem tak muto napíše neudělal jsi autoškolu přijel jsi z jinym autem...kod mam takto
case CP15:{
if(IsPlayerConnected(playerid)){
if(IsPlayerInAnyVehicle(playerid)){
new vozidlo= GetPlayerVehicleID(playerid), Float:autohp;
GetVehicleHealth(vozidlo, autohp);
if(autohp <= 990.0){
GameTextForPlayer(playerid, "~r~Neprospel si, moc jsi boural", 5000, 3);
SendClientMessage(playerid,BARVA_CERVENA,"Neudělal jsi autoškolu");
DisablePlayerCheckpoint(playerid);
}else{
DisablePlayerCheckpoint(playerid);
ridicak[playerid] = 1;
SendClientMessage(playerid,BARVA_ORANZOVA,"Udělal jsi autoškolu");
}
}
}
}
}
return 1;
}
zkoušel jsem to takto ale nešlo to...
case CP15:{
if(IsPlayerConnected(playerid)){
[b]if(IsPlayerInVehicle(playerid, 542)){
SendClientMessage(playerid,BARVA_CERVENA,"Neudělal jsi autoškolu prijel jsi ze spatnou karou");[/b]
new vozidlo= GetPlayerVehicleID(playerid), Float:autohp;
GetVehicleHealth(vozidlo, autohp);
if(autohp <= 990.0){
GameTextForPlayer(playerid, "~r~Neprospel si, moc jsi boural", 5000, 3);
SendClientMessage(playerid,BARVA_CERVENA,"Neudělal jsi autoškolu");
DisablePlayerCheckpoint(playerid);
}else{
DisablePlayerCheckpoint(playerid);
ridicak[playerid] = 1;
SendClientMessage(playerid,BARVA_ORANZOVA,"Udělal jsi autoškolu");
}
}
}
}
}
return 1;
}