Jump to content
  • 0

Ajutor hq-uri factiuni!


Colenelu

Question

Nick:Colonelu

Problema:O factiune are mai multe hq-uri!si as vrea sa rezolv asta dar nu stiu ce sa sterg!

Erori / warnings:-

Lini/script:

2195.6118,1677.2098,12.3672 sunt coordonatele care le foloesc petnru hq celelalte vreau sa le sterg da nu stiu de unde pana unde fara sa dea erroare sau waring

else if (PlayerToPoint(8.0, playerid,2195.6118,1677.2098,12.3672) || PlayerToPoint(8.0, playerid,1630.3441,1976.7507,10.8203) || PlayerToPoint(8.0, playerid,-2193.2517,647.4206,49.4375))//Ballas
			{
				if (PlayerData[playerid][pMember] == 12 || PlayerData[playerid][pLeader] == 12)
				{
				    if(PlayerToPoint(8.0, playerid,1630.3441,1976.7507,10.8203))
				    {
				        PlayerData[playerid][pSf] = 2;
				    }
				    if(PlayerToPoint(8.0, playerid,-2193.2517,647.4206,49.4375))
				    {
				        PlayerData[playerid][pSf] = 1;
				    }
			    	GameTextForPlayer(playerid, "~w~Bine ai venit la Ballas!", 5000, 1);
			    	SetPlayerInterior(playerid,3);
					SetPlayerPos(playerid,964.106994,-53.205497,1001.124572);
				}
			}

:

Ai incercat sa rezolvi singur ?:NU:D

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

[pawn]else if ( PlayerToPoint(8.0, playerid,-2193.2517,647.4206,49.4375))// AICI PUI EXTERIOR FACTIUNE

            {

                if (PlayerData[playerid][pMember] == 12 || PlayerData[playerid][pLeader] == 12)

                {

                    if(PlayerToPoint(8.0, playerid,-2193.2517,647.4206,49.4375))

                    {

                        PlayerData[playerid][pSf] = 1;

                    }

                GameTextForPlayer(playerid, "~w~Bine ai venit la Ballas!", 5000, 1);

                SetPlayerInterior(playerid,3);

                    SetPlayerPos(playerid,2195.6118,1677.2098,12.3672); // AICI PUI INTERIOR FACTIUNE

                }

            }[/pawn]

Cat despre Skin-uri, e mai complicat de dedus avand in vedere ca nu stiu ce GM ai tu, dar, poti face asa:

1.La /invite e posibil sa gasesti ceva gen "gTeam[para1] = 2; ftext = "Police Departament"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }"

2. Cauti Chosen Skin in GM si tot asa pana gasesti ce ai nevoie.

sau vezi daca ai JoinPed[75][1] = { in GM, daca ai, skin-urile sunt mai jos. ;)

Link to comment
Share on other sites

pentrui skin aici?:D

case 16: //The Rifa
				{
				    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[118][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[118][0]; }
				    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[119][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[119][0]; }
				    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[120][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[120][0]; }
				    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[121][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[121][0]; }
				    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[122][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[122][0]; }
				    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[123][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[123][0]; }
                    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[124][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[124][0]; }
				    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[125][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[125][0]; }
				    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[126][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[126][0]; }
				}

Link to comment
Share on other sites

Da . De exemplu la prima linie :

SetPlayerSkin(playerid, JoinPed[118][0]);
118 e id-ul skinului tu il inlocuiesti cu ce id vrei tu .
SelectCharPlace[playerid] = 2;
Aici nu schimba nimic .
ChosenSkin[playerid] = JoinPed[118][0];

Si aici inlocuiesti 118 cu id-ul skinului care il vrei tu .

O lista cu skinuri ai aici http://wiki.sa-mp.com/wiki/Skins:All .

Link to comment
Share on other sites

Andy, ce ai spus tu e o mare prostie.

Skin-urile lui sunt numerotate, iti dau un exemplu: new JoinPed[75][1] = { . 75 este numarul de skin-uri nu ID-ul skin-ului.

Colonele, cauta JoinPed[118] prin GM, o sa gasesti ce ai nevoie. ;)

Nu stiu nu scriptez gf-uri .

Cat despre subiectul topicului nu ar fi mai simplu sa pui tu asa:

if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 53); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 53; }

In aceasta linie am pus ca skinul care sa il dai sa fie 53 . Fara JoinPed si alte prosti .

Link to comment
Share on other sites

(65466) : error 014: invalid statement; not in switch
(65466) : warning 215: expression has no effect
(65466) : error 001: expected token: ";", but found ":"
(65466) : error 029: invalid expression, assumed zero
(65466) : fatal error 107: too many error messages on one line
am pus cum ai zis tu numai ca am modificat id la skinuri si am pus prima cu 1 dupa cu 2 pana la 6
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 53); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 53; }
if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 53); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 53; }....
if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 53); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 53; }

cu id de skinuri diferite!

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.