20.07.2011, 11:43
Im making a dmv system and i was wondering how can i make a car that spawns when the player chooses to do there license only usable by that person?
Thanks Matt
Thanks Matt
new
vUser[MAX_VEHICLES];
new vehicleid = CreateVehicle( modelid, x ,y ,z , col1, col2 ); // You create the car that the player will use
vUser[vehicleid] = playerid; // When the player is ready to take the test
if( vUser[vehicleid] == playerid ) { .... code } // under OnPlayerStateChange
else { RemovePlayerFromVehicle(playerid); }
new DrivingTestVehicle=CreateVehicle( modelid, x ,y ,z , col1, col2 );// The Driver Test Vehicle SetPVarInt(playerid,"DrivingTest",1);// For when the player is ready to take the test if(vehicleid==DrivingTestVehicle&&GetPVarInt(playerid,"DrivingTest")==0)// For under OnPlayerEnterVehicle { RemovePlayerFromVehicle(playerid); }