Jump to content
  • 0

am o problema cu acest script:)


only4fun

Question

variabila PlayerInfo[playerid][pCarLic] (licenta de condus) o am 0 din start, iar problema e ca nu ma lasa sa conduc nici biciclete, asa ca am facut asta...dar nu stiu ce are:)

am pus la inceput:

new biciclete;

apoi la OnPlayerEnterVehicle am pus

 	new newcar = GetPlayerVehicleID(playerid);
 	if(newcar == 181 || newcar == 182 || newcar == 183 || newcar == 184 || newcar == 204 || newcar == 205 || newcar == 206 || newcar == 207 || newcar == 208 || newcar == 209 || newcar == 210 ||
	newcar == 211 || newcar == 212 || newcar == 213 || newcar == 214 || newcar == 215 || newcar == 216 || newcar == 217)
	{

	    PlayerInfo[playerid][pCarLic] = 1;
	    biciclete = 1;
	    }
apoi la OnPlayerStateChange am pus
	if( oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT && biciclete == 1) // BICICLETE !
	{
        	PlayerInfo[playerid][pCarLic] = 0;
        	biciclete = 0;
	}

si nu merge:|

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.