dandiss 0 Odesláno: 12. Červen, 2013 Share Odesláno: 12. Červen, 2013 Dobrý den chtěl bych se zeptat jestli mi někdo neporadí potřebuju aby nastoupil hráč do auta bez ridičaku napíše mu to nemáš řidičák ale aby to bylo jen u aut ne u letadel .. prosím poraďte Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 12. Červen, 2013 Share Odesláno: 12. Červen, 2013 public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new veh = GetPlayerVehicleID(playerid); if(GetVehicleModel(veh) != lietadlo1 || GetVehicleModel(veh) != lietadlo2 || GetVehicleModel(veh) != lietadlo3) // a tak ďalej, si nájdeš na wiki { SCM(playerid,-1,"Nemáš vodičák vypadni z auta"); RemovePlayerFromVehicle(playerid); } } return 1; } ///alebo použíješ tento stock stock IsPlayerInFlyingVehicle(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 460,464,476,511,512,513,519,520,553,577,592,593,417,425,447,465,469,487,488,497,501,548,563: { return true; } } return false; } //a bude to vyzerať takto: public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new veh = GetPlayerVehicleID(playerid); if(!IsPlayerInFlyingVehicle(veh)) { SCM(playerid,-1,"Nemáš vodičák vypadni z auta"); RemovePlayerFromVehicle(playerid); } } return 1; } Link to comment Share on other sites More sharing options...
0 TheRohlikar 21 Odesláno: 12. Červen, 2013 Share Odesláno: 12. Červen, 2013 Podmínku pro to, esli nemáš řidičák.. if(Ridicak[playerid] != 1){ SendClientMessage(playerid,-1,"Nemas ridicak na auto ty kokos ");} //Ajoooo na auta jenom.. Link to comment Share on other sites More sharing options...
0 Pepa 2 Odesláno: 12. Červen, 2013 Share Odesláno: 12. Červen, 2013 Do public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) dáš if(ridicak[playerid] == 0) return SendClientMessage(playerid,barva,"Nemate ridicky prukaz"); ale zmen si if(ridicak nwm co pouzivas Link to comment Share on other sites More sharing options...
0 dandiss 0 Odesláno: 12. Červen, 2013 Author Share Odesláno: 12. Červen, 2013 public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new veh = GetPlayerVehicleID(playerid); if(GetVehicleModel(veh) != lietadlo1 || GetVehicleModel(veh) != lietadlo2 || GetVehicleModel(veh) != lietadlo3) // a tak ďalej, si nájdeš na wiki { SCM(playerid,-1,"Nemáš vodičák vypadni z auta"); RemovePlayerFromVehicle(playerid); } } return 1; } ///-------alebo použíješ tento stock stock IsPlayerInFlyingVehicle(vehicleid) { switch(GetVehicleModel(vehicleid)) { case 460,464,476,511,512,513,519,520,553,577,592,593,417,425,447,465,469,487,488,497,501,548,563: { return true; } } return false; } //a bude to vyzerať takto: public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new veh = GetPlayerVehicleID(playerid); if(!IsPlayerInFlyingVehicle(veh)) { SCM(playerid,-1,"Nemáš vodičák vypadni z auta"); RemovePlayerFromVehicle(playerid); } } return 1; } HOTOV DÍKY lock Link to comment Share on other sites More sharing options...
Dotaz
dandiss 0
Dobrý den chtěl bych se zeptat jestli mi někdo neporadí potřebuju aby nastoupil hráč do auta bez ridičaku napíše mu to nemáš řidičák ale aby to bylo jen u aut ne u letadel .. prosím poraďte
Link to comment
Share on other sites
4 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 accountSign in
Already have an account? Sign in here.
Sign In Now