Jump to content

Cum adaugi o factiune noua by bRiLiAnT edit 5/3/2011


NeKeRm@N

Recommended Posts

Am vazut ca multi cautati, cum sa faceti o factiune noua asa ca mam gandit sa fac un tutorial ca sa nu va mai rupeti atat capul... In tutorialul de mai jos vad ca nu pre-a ati inteles nimic asa ca sa-i dam drumu! :grin:

1.Mai intai dai search(ctrl+f) si cauti:

case 11: //Driving/Flying School
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
}
O dublezi pe asta, si in loc de "//Driving/Flying School" scrii "//FactiuneMeaNoua" Si in loc de 11 pui 12 2.Acum sa setam spawnul. Dai search(ctrl+f) si cauta.
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
Pe aceasta o dublezi si in loc de "//Taxi Cab Company spawn" scrii "//FactiuneaMeaNoua". Acum te duci pe server si alegi un loc pentru spawnul factiunii, si dai /save. D>Jocuri>GtaSanAndreas>savedpositions.txt Acum copiezi X,Y,Z(ce ai tu acolo) Se poate citi dupa virgule. Exemplu: 123, - modelid 456 - X 789 - Y 123 - Z 3. Acum cautati:
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
Si in locul lui 11 pui 12, si in locul lui "School Instructor" pui "Membru Al Factiunii Noi" 4. Acum dai mai jos pana gasesti
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ftext = "License Faction"; }
O dublezi, in loc de 11 pui 12, "License Faction" il schimbi in "Factiune Noua". 5. Acum sa punem rankurile dati mai jos pana ce gasiti:
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//SAPT Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Rookie"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "SAPT Commissioner"; }
else { rtext = "Trainee"; }
}
O dublezi si in loc de 10 pui 12 si in loc de "//SAPT Ranks" pui "//Ranks factiune noua". 6.Acum sa punem si skinul liderului. Dai search(ctrl+f) si cauti "/makeleader". Si vei gasi asta:
if(level > 12 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 13!"); return 1; }
Din 12, modifici in 13. Si va arata asa:
if(level > 13 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 13!"); return 1; }
7.Acum dati mai jos pana ce gasiti:
else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School
O dublati, in loc de 11 puneti 12, si in loc de "//Driving/Flying School" pui "//FactiuneNoua". Acum iti alegi un skin si il pui in loc de 171 pui skinu dorit. 8.Acum du-te la comanda "/invite".(ctrl+f si cauta "/invite" cu ghilimele!) Si vei gasi ceva de genu:
else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
O dublezi si in loc de 11 pui 12! 9. Acum sa adaugam masinile! La inceputul gm-ului adaugi new oricenume1; new oricenume2; (depinde in cate masini ai da /save, daca dai in 5 masini, scri de 5 ori new oricenume3,4,5 etc) Te duci pe server alegi masinile si pozitia lor intri in ele si dai /save. Dupa ce ai dat la toate /save iesi de pe server, te duci in my documents/GTA San Andreas User Files/samp/savedpositions. Copiezi masinile de acolo si le bagi ultimile, la linia
public OnGameModeInit()
{
cu ce nume ai pus tu la new origenume1; in fata acesteia dar fara new. Un exemplu:
	oricenume1 = AddStaticVehicle(486,-711.8731,941.2867,12.5849,91.0978,1,1); //NumeFactiune
	oricenume2 = AddStaticVehicle(571,-666.4409,941.3121,11.4163,275.8027,1,1); //NumeFactiune
	oricenume3 = AddStaticVehicle(571,-666.1060,938.0422,11.4166,266.5053,1,1); //NumeFactiune
10. Acum sa adaugam chatul la factiune Cautati "/f" (cu ghilimele) Veti gasi ceva de genu
                else if(member==18)
				{
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result); }
					else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Co-Leader %s: %s. )) **", sendername, result); }
					else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Underboss %s: %s. ))  **", sendername, result); }
					else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Capo %s: %s. ))  **", sendername, result); }
					else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Mafiosso %s: %s. ))  **", sendername, result); }
					else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** New-Bie %s: %s. ))  **", sendername, result); }
					else { format(string, sizeof(string), "** New-Bie %s: %s. )) **", sendername, result); }
					SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
			   }
O dublati si in loc de else if(member==18) puneti else if(member==19) (sau a cata factiune este la voi)! 11. Acum sa facem masinile factiunilor numai pentru membri acesteia. Cautati
		if(newcar == 141 || newcar == 136 || newcar == 139 || newcar == 140 || newcar == 137 || newcar == 138)
		{
            if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13) { }
		    else
			{
		        SendClientMessage(playerid,COLOR_GREY,"Nu esti membru Crips");
		        RemovePlayerFromVehicle(playerid);
		    }
		}
O dublati si in loc de 141,136 etc puneti ce ati pus voi la new nume; dar fara new (ex if(newcar == nume|| newcar nume2 etc..) Si in locul
if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13) 
numarului 13 puneti numarul factiuni voastre exemplu
if(PlayerInfo[playerid][pMember] == 14||PlayerInfo[playerid][pLeader] == 14) 

Si in locul ,,Nu esti membru crips'' scri Nu esti membru numefactiune

Si gata..

Daca mai gasesc imbunatatiri sau vreo idee dau edit!

Atat sper sa va mearga si voua mie mia mers!  Succes!!

Link to comment
Share on other sites

  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

chestia cu masinile e gresita;) se poate urca oricine in ele :D

trebuie fkt asa la masini

de exemplu dublam linia masinilor news reporter

if(newcar == 84 || newcar == 85 || newcar == 86)
		{
			if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){ }
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   [News Car]: Nu esti membru News Reporter !");
			    RemovePlayerFromVehicle(playerid);
			}
			if(PlayerInfo[playerid][pNewsSkill] < 200 && newcar == 86)
			{
			    SendClientMessage(playerid, COLOR_GREY, "  [News Car]: Nu ai skil 3[200news] pentru a lua elicopteru !");
			    RemovePlayerFromVehicle(playerid);
			}
sa spunem ca am creat pentru factiunea noastra : fcar1 fcar2 fcar3 etc.Acum schimbam aici
if(newcar == fcar1 || newcar ==fcar2 || newcar == fcar3)
		{
			if(PlayerInfo[playerid][pMember] == x || PlayerInfo[playerid][pLeader] == x){ }
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   [Factiuune Car]: Nu esti membru News Reporter !");
			    RemovePlayerFromVehicle(playerid);
			}
			if(PlayerInfo[playerid][pNewsSkill] < 200 && newcar == 86)//optional daca nu vreti elicopter stergeti aceasta linie impreuna cu mesajul //daca vreti heli fara rank stergeti doar [i]PlayerInfo[playerid][pNewsSkill] < 200 &&[/i]
			{
			    SendClientMessage(playerid, COLOR_GREY, "  [Factiune Car]: Nu ai skil 3[200news] pentru a lua elicopteru !");
			    RemovePlayerFromVehicle(playerid);
			}

Cum a scris nekerman asa se urca toata lumea in masina :D

mca.png
Link to comment
Share on other sites

chestia cu masinile e gresita;) se poate urca oricine in ele :D

trebuie fkt asa la masini

de exemplu dublam linia masinilor news reporter

if(newcar == 84 || newcar == 85 || newcar == 86)
		{
			if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){ }
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   [News Car]: Nu esti membru News Reporter !");
			    RemovePlayerFromVehicle(playerid);
			}
			if(PlayerInfo[playerid][pNewsSkill] < 200 && newcar == 86)
			{
			    SendClientMessage(playerid, COLOR_GREY, "  [News Car]: Nu ai skil 3[200news] pentru a lua elicopteru !");
			    RemovePlayerFromVehicle(playerid);
			}
sa spunem ca am creat pentru factiunea noastra : fcar1 fcar2 fcar3 etc.Acum schimbam aici
if(newcar == fcar1 || newcar ==fcar2 || newcar == fcar3)
		{
			if(PlayerInfo[playerid][pMember] == x || PlayerInfo[playerid][pLeader] == x){ }
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   [Factiuune Car]: Nu esti membru News Reporter !");
			    RemovePlayerFromVehicle(playerid);
			}
			if(PlayerInfo[playerid][pNewsSkill] < 200 && newcar == 86)//optional daca nu vreti elicopter stergeti aceasta linie impreuna cu mesajul //daca vreti heli fara rank stergeti doar [i]PlayerInfo[playerid][pNewsSkill] < 200 &&[/i]
			{
			    SendClientMessage(playerid, COLOR_GREY, "  [Factiune Car]: Nu ai skil 3[200news] pentru a lua elicopteru !");
			    RemovePlayerFromVehicle(playerid);
			}

Cum a scris nekerman asa se urca toata lumea in masina :D

Asa e mandela eu asa am pus in gm dar am uitat sa pun si chestia asta  in tutorial..

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Fara sa'l testez am observat greseli in el

-Daca respecti ce e scris in tutorial se vor face buguri la masini

-Nu e chiar foarte bine explicat si incepatorii or sa strice factiunea numarul 10

-Alte greseli

[move]3/5[/move]

1.eu asa am facut si nu am niciun bug la factiune

2.la factiunea nr 10 este un exemplu dat de mn ei o sa inlocuiasca cu nr lor

3.care greseli?

Link to comment
Share on other sites

  • 2 weeks later...

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(460) : error 001: expected token: ";", but found "new"

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(461) : error 001: expected token: ";", but found "new"

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(462) : error 001: expected token: ";", but found "new"

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(469) : error 001: expected token: ";", but found "new"

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1718) : error 004: function "SetPlayerToTeamColor" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1743) : error 004: function "SetPlayerToTeamColor" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1763) : error 004: function "SetPlayerCriminal" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1768) : error 004: function "SetPlayerCriminal" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1832) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1836) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1848) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1852) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1856) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1860) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1864) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1868) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1872) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1884) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1888) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1892) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1896) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1900) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1912) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1916) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1920) : error 004: function "PlayerToPoint" is not implemented

C:\Documents and Settings\dfj\Desktop\server\gamemodes\gf.pwn(1932) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.

Link to comment
Share on other sites

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.

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