Jump to content
  • 0

Problema | sau incurcat id'urile la masini , ajutatima va rog


Flyer-Satyr

Question

salut, am o problema , cred ca pentru voi este usoara:)

am pus un FilterScript cu un sistem CarOwnerShip : http://pawno.sa-mp.ro/pastebin.php?show=2575

FS ruleaza perfect dar sau incurcat id'urile la masini cu cele din game mod :|

cum pot rezolva prooblema asta ?

inca ceva :)

tot la acel FS cum pot pune ca fiecare player sa poata detine cate 3 masini ? normal e cate 1 de player ...

metallica-logo.jpg
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

as face asta daca as stii cum :|

Mda ... deci la OnFilterScriptInit in FS-ul de "CarOwnerShip" scrie asa:

new i;
	for(i=0; i<sizeof(Buylist); i++)
	{
		Buylist[i][Carid]=CreateVehicle(Buylist[i][Modelid],Buylist[i][X],Buylist[i][Y],Buylist[i][Z],Buylist[i][Rotation],-1,-1,-1);
	}
	for(i=0; i<MAX_PLAYERS; i++)
	{
		Spectating[i][0]=-1;
	}
tu in GM il adaugi la final asa:
public OnGameModeInit()
{
    //chestii
    //TOATE VEHICULELE
    //alte chestii poate
    //aici pui asta:
	for(new i=0; i<sizeof(Buylist); i++)
	{
		Buylist[i][Carid]=CreateVehicle(Buylist[i][Modelid],Buylist[i][X],Buylist[i][Y],Buylist[i][Z],Buylist[i][Rotation],-1,-1,-1);
	}
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		Spectating[i][0]=-1;
	}
   return 1;
}

Link to comment
Share on other sites

ce vrea sa insemne //chestii si //altechestii? daca tot spuneti cum se face spuneti exact nu cu chestii trestii si alte rahaturi

//chestii era ce mai are el prin OnGameModeInit, ce conteaza ?

tu in GM il adaugi la final asa:

public OnGameModeInit()
{
    //chestii
    //TOATE VEHICULELE
    //alte chestii poate
    //aici pui asta:
	for(new i=0; i<sizeof(Buylist); i++)
	{
		Buylist[i][Carid]=CreateVehicle(Buylist[i][Modelid],Buylist[i][X],Buylist[i][Y],Buylist[i][Z],Buylist[i][Rotation],-1,-1,-1);
	}
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		Spectating[i][0]=-1;
	}
   return 1;
}

Chiesti si iar chiesti nu inteleg nimic din ce spui

Nu intelegi, bine, am explicat clar ...

asta este pentru reglarea idurilor la masini nu ? :)

Da.
Link to comment
Share on other sites

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.