Jump to content
  • 0

pomoc Vjíždění do cp s určitym autem


Fil

Dotaz

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;
}

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...