Jump to content
  • 0

Get(Set)VehicleZAngle


Guest farse

Question

	if (newkeys == KEY_WALK + KEY_SPRINT)
	{
		SendClientMessage(playerid,Color_Violet,"...");
		new vehicleid=GetPlayerVehicleID(playerid);
		new Float:Angle;
		GetVehicleZAngle(vehicleid,Angle);
		SetVehicleZAngle(vehicleid,Angle);
	}

Am incercat sa fac,cand apasa Alt+BackSpace sa se intoarca masina...dar cand apas butoanele in masina nu se intampla nimic :P si cand nu sunt in masina si apas acele butoane imi apare "..."

Ma chinui de 2 ore si..nimic..

"Help me"

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

	if (newkeys == KEY_WALK + KEY_SPRINT)
	{
		SendClientMessage(playerid,Color_Violet,"...");
		new vehicleid=GetPlayerVehicleID(playerid);
		new Float:Angle;
		GetVehicleZAngle(vehicleid,Angle);
		SetVehicleZAngle(vehicleid,Angle);
	}

GetVehicleZAngle(vehicleid,Angle);

SetVehicleZAngle(vehicleid,Angle);

pai ce ai vrea sa intoarca? tu practic ii afli unghiul apoi nu il schimbi nu ii faci nimic :P scrie la SetVehicleZAngle(vehicleid, ceunghiuvreitu);

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Serban
      Salut, astazi 19/04/2021 am incercat sa fac un magazin in care sa-ti poti cumpara anumite bunuri dar cand vreau sa dau click pe una imi da mai multe selectate si eu doresc sa pot da click doar pe un singur text nu toate, stiti vreo functie inafara de TextdrawSize si PlayerTextdrawSize? va rog, am cautat si pe internet dar nu gasesc.
    • By ShaggyShaggy
      Versiunea Mysql: R39-6 
      Deci problema e urmatoarea: cand dau in dialog valoarea pe care vreau sa o setez la nivelul unui player, nu ii actualizeaza acelui player nimic.
      Observatie: PlayerInfo pentru player-ul acela se schimba la valoarea pusa, dar nu se actualizeaza in baza de date.
       
      // Am un dialog unde ii setezi nivelul unui player if(response) { if(!IsNumeric(inputtext)) return SCM(playerid, verde_inchis, "Ai introdus si alte caractere!"); new player; player = GetPVarInt(playerid, "PlayerID"); PlayerInfo[player][pNivel] = strval(inputtext); } // Si aici o functie care actualizeaza perfect la playerid dar la player-ul din set nu function UpdatePlayerInfo(playerid) { gQuery[0] = EOS; mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Nivel` = %d WHERE `ID` = '%d'", PlayerInfo[playerid][pNivel], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", "", playerid); return 1; }  
    • By TheSlim2
      SALUTARE ma puteti ajuta si pe mine cum sa bag comanda /set cu money,pp Giftpoints,etc
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.