Multi dintre voi cautati o noua factiune pentru serverul dv.
Aici veti invata sa va faceti propria factiune.
In Primul rand:
Dai search si cauti !
case 1: //Politia Romana
{
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]; }
}
Si o multiplici (In Loc de Politia Romana) Puneti factiunea noua .
2.) Vom Seta Spawnul!
Cautam !
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
O Dublam , in loc de taxi punem factiunea noastra .!
Acum mergem pe server Si alegem un spawn pentru factiune.
/save !!
D>Jocuri>GtaSanAndreas>savedpositions.txt
Acum copiezi X,Y,Z(ce ai tu acolo)
Se poate citi dupa virgule. Exemplu: 123, - modelid
3.) Cautam!
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
In Loc de 11 puneti numarul factiunii .!
In loc de School Instructor puneti numele factiunii.
4.) Acum Cautam!
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 vom pune rankurile !
Dati mai jos pana gasiti !
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//PR 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 = "Commissioner"; }
else { rtext = "Trainee"; }
}
O Dublezi , si in loc de 10 puneti numarul factiunii , in loc de Pr Ranks puneti numele factiunii !!
Si numele rankurilor cum doriti voi.
6.) Cautam commanda /makeleader !!
Si Veti gasi :
if(level > 12 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 13!"); return 1; }
In loc de 12 facem 13 .
7.) Acum dati mai jos pana gasim:
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!)
else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
O dublezi in loc de 11 pui 12 ..
9.) Acum vom pune masinile !
la inceputul gmului punem
new masina1
new masina2
(Cate Masini Aveti voi de adaugat)
Apoi mergem in joc facem masinile cu /veh sau cu ce aveti voi acolo .
Mergem unde vreti sa fie parcate si dati /save in toate !
mergem la :
public OnGameModeInit()
{
si adaugam masinile !
AddStaticVehicle(486,-711.8731,941.2867,12.5849,91.0978,1,1); //NumeFactiune
AddStaticVehicle(571,-666.4409,941.3121,11.4163,275.8027,1,1); //NumeFactiune
AddStaticVehicle(571,-666.1060,938.0422,11.4166,266.5053,1,1); //NumeFactiune
10.) Acum vom adauga Chatul factiunii /f!
cautati /f (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 la
if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13)
In loc de 13 puneti numarul factiunii.
Si in loc de nu esti membru Crips puneti si voi ( Nu esti membru Factiunea MeA)
Sper ca vam ajutat ! Bafta
Aici veti invata sa va faceti propria factiune.
In Primul rand:
Dai search si cauti !
case 1: //Politia Romana
{
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]; }
}
Si o multiplici (In Loc de Politia Romana) Puneti factiunea noua .
2.) Vom Seta Spawnul!
Cautam !
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
O Dublam , in loc de taxi punem factiunea noastra .!
Acum mergem pe server Si alegem un spawn pentru factiune.
/save !!
D>Jocuri>GtaSanAndreas>savedpositions.txt
Acum copiezi X,Y,Z(ce ai tu acolo)
Se poate citi dupa virgule. Exemplu: 123, - modelid
3.) Cautam!
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
In Loc de 11 puneti numarul factiunii .!
In loc de School Instructor puneti numele factiunii.
4.) Acum Cautam!
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 vom pune rankurile !
Dati mai jos pana gasiti !
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//PR 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 = "Commissioner"; }
else { rtext = "Trainee"; }
}
O Dublezi , si in loc de 10 puneti numarul factiunii , in loc de Pr Ranks puneti numele factiunii !!
Si numele rankurilor cum doriti voi.
6.) Cautam commanda /makeleader !!
Si Veti gasi :
if(level > 12 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 13!"); return 1; }
In loc de 12 facem 13 .
7.) Acum dati mai jos pana gasim:
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!)
else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
O dublezi in loc de 11 pui 12 ..
9.) Acum vom pune masinile !
la inceputul gmului punem
new masina1
new masina2
(Cate Masini Aveti voi de adaugat)
Apoi mergem in joc facem masinile cu /veh sau cu ce aveti voi acolo .
Mergem unde vreti sa fie parcate si dati /save in toate !
mergem la :
public OnGameModeInit()
{
si adaugam masinile !
AddStaticVehicle(486,-711.8731,941.2867,12.5849,91.0978,1,1); //NumeFactiune
AddStaticVehicle(571,-666.4409,941.3121,11.4163,275.8027,1,1); //NumeFactiune
AddStaticVehicle(571,-666.1060,938.0422,11.4166,266.5053,1,1); //NumeFactiune
10.) Acum vom adauga Chatul factiunii /f!
cautati /f (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 la
if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13)
In loc de 13 puneti numarul factiunii.
Si in loc de nu esti membru Crips puneti si voi ( Nu esti membru Factiunea MeA)
Sper ca vam ajutat ! Bafta