21.09.2015, 16:24
(
Последний раз редактировалось Iceblizard; 22.09.2015 в 07:56.
)
karemmaahmed22 said First Define under Includes and You know ''OnPlayerStateChange'' Thanks to Karemmahmed22 and also BroZeus
Also you can change the score limit if you want by editing like Changing Define
another one
Credits:kareemahmed
That was example of changing vehicle but you need to add another level
Also you can change the score limit if you want by editing like Changing Define
another one
PHP код:
if(newstate == PLAYER_STATE_DRIVER)
{
new pIscore;
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
pIscore = GetPlayerScore(playerid);
if (GetVehicleModel(vehicleid) == 432 && pIscore < PLAYER_LEVEL6) // Rhino
{
SendClientMessage(playerid,-1,"Your level is not high enough to drive this vehicle, please kill others to gain score!");
RemovePlayerFromVehicle(playerid);
Credits:kareemahmed
That was example of changing vehicle but you need to add another level