Jump to content

[GF]Masina personala (fara Oldcar)


kidu13

Recommended Posts

De multe ori intalnim probleme la " /oldcar " , asa ca m-am hotarat sa va arat cum puteti face fara.

- Sus in script :

 new Nume;
- sub OnGameModeInit:
Nume = AddStaticVehicle(coordonate);
( /save in joc ) - sub public OnPlayerStateChange
if(GetPlayerVehicleID(playerid) == Nume)
{
	new sendername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(strcmp(sendername,"Numele jucatorului caruia o faci",true))
	{
		SendClientMessage(playerid,COLOR_GREY,"   You do not have the keys of this car !");
		RemovePlayerFromVehicle(playerid);
	}
}

Tutorialul este facut de mine, deci sa nu aud comentarii de genu : ai copiat de acolo , e scris de ala , e de pe ala etc.. :) sper ca v-am ajutat ;)

efe25e4426ff4ce1266705e.png
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Am o intrebare si daca vreau sa fac asa ceva pentru factiune ce comanda trebe sa folosesc if(GetPlayerVehicleID(playerid) == Nume){ new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(strcmp(sendername,"Numele jucatorului caruia o faci",true)) { SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !"); RemovePlayerFromVehicle(playerid); }}

? sau sa sterg de aici :D

31.215.195.95:7777

Link to comment
Share on other sites

  • 3 weeks later...

Ai adaugat Nume = AddStaticVehicle(coordonate); ?

Masina o faci din game prin comanda /veh apoi intri in ea si scri /save si iti va aparea un cod in My Computer -> My Documents -> GTA San Andreas -> SAMP -> savedeposition

Exemplu: AddStaticVehicle(402,1098.5219,-1754.9285,13.1848,90.4273,0,0); //

stats.php?page=2&ip=samp.zonek.ro&port=7777
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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