Unfreezing stuff and changing model preview id on playertextdraw
#1

So first problem i have is that after player buys vehicle he just sits in it and cant move, probably engine turned off or somewhere i have TogglePlayerControllable(playerid, 0); but no, he just wont move and thats it, lights arent turned on when i go into that car maybe that helps you idk ...

Код:
			SCM(playerid, -1, "{FF0000}Cestitamo na kupovini. Za vise informacija koristite /veh.");
			PlayerInfo[playerid][pVeh1] = VehInfo[id][vID];
			new imeigraca[MAX_PLAYER_NAME];
			GetPlayerName(playerid, imeigraca, sizeof(imeigraca));
			strmid(VehInfo[id][vVlasnik], imeigraca, 0, strlen(imeigraca), 150);
			VehInfo[id][vCreated] = 2;
			UpdateVeh(id, 0);
			SaveVeh(id);
			CancelSelectTextDraw(playerid);
			PlayerTextDrawHide(playerid, TDCoS0[playerid]);
			PlayerTextDrawHide(playerid, TDCoS1[playerid]);
			PlayerTextDrawHide(playerid, TDCoS2[playerid]);
			PlayerTextDrawHide(playerid, TDCoS3[playerid]);
			PlayerTextDrawHide(playerid, TDCoS4[playerid]);
			PlayerTextDrawHide(playerid, TDCoS5[playerid]);
			PlayerTextDrawHide(playerid, TDCoS6[playerid]);
			PlayerTextDrawHide(playerid, TDCoS7[playerid]);
			PlayerTextDrawHide(playerid, TDCoS8[playerid]);
			SetTimerEx("Unfreezetimer", 100, false, "i", playerid);
and unfreezetimer is just toggleplayercontrollable to 1 cuz i thought that might fix it ...

second problem i have is that this :
PlayerTextDrawSetPreviewModel(playerid, TDCoS6[playerid], GetVehicleModel(GetPlayerVehicleID(playerid)));
When i enter a vehicle shows model of the past vehicle ive been into like the one before and when i re-enter that vehicle it shows it right so idk whats the problem ? also i put this under onplayerstatechange and newstate == player_state_driver. Thanks for reading
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)