Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: frakcje
41. [DM] Frakcje
Siemanko chcia?em zapyta? czy da?o by rade zrobi? teamy pod tab kt?re b?d? zawsze bo gdy zawsze robie restart musze wpisywa? teamy od nowa.To jest m?cz?ce
42. Frakcje
Witam, jak zrobi? frakcje ale nie poprzez komend? lub np. ?e admin daje komend? chodzi mi o takie co? ?e idziemy do urz?du miasta i jak s? wolne miejsca 0/5 to zapisujemy si? jako np. taks?wkarz. Jak takie co? zrobi? ? Czy jest co? podobnego ?

Poleci naprawde du?o :piwo:
43. [SKRYPT] Frakcje - Korzystajcie :
Chcia?bym wam udost?pni? frakcje kt?re robi?em sam w 85% bo te 15 pomaga? troch? PanMaszyna, bo musia? pom?c bo osoba bo zalogowaniu nie pojawia?a si? w teamie. Ale teraz oczywi?cie wszystko dzia?a :) Korzystajcie, oczywi?cie je?li mo?na dawajcie :piwo: :)
I w ACL uzupe?nijcie, ?e nale?ycie do danej frakcji ;)
Jest to jeden z moich pierwszych skrypt?w

Znajduj? si? tutaj frakcje taki jak: Policja, Pogotowie, Taxi, PSP (Pa?stwowa Stra? Po?arna), OSP (Ochotnicza Stra? Po?arna), oraz Pomoc Drogowa :)
[code]
function Chat(message, msgtype)
local Gracz = getPlayerName(source)
if (msgtype == 0) then
cancelEvent()
local red, green, blue = getPlayerNametagColor(source)
outputChatBox(""..Gracz..": "..message, root, red, green, blue, true)
end
end
addEventHandler("onPlayerChat", root, Chat)

Cywile = createTeam ( "Cywile", 255, 255, 255 )
politeamx = createTeam ( "Policja", 0, 100, 255 )
Pogoteamx = createTeam ( "Pogotowie", 20, 220, 220 )
PDteamx = createTeam ( "PomocDrogowa", 200, 30, 230 )
Taxiteamx = createTeam ( "Taxi", 255, 200, 0 )
OSPteamx = createTeam ( "OSP", 250, 0, 0 )
PSPteamx = createTeam ( "PSP", 250, 0, 0 )


function Policja ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( ...
44. Frakcje
Mam ju? gotowe frakcje :) Ale gdy loguj si? np. do policji (/loginpolicja) przenosi mnie na spawn policji, daje skiny, daje bronie, ale w tabeli nie ma mnie w policji, podam kod, mo?e kto? wy?apie co? co jest nie tak :D Tutaj zdj?cie, ?e nie jestem nawet w cywilach, tylko taki ni jaki :D http://zapodaj.net/da0bde4e50dab.jpg.html

A tutaj kod
[code]
function Chat(message, msgtype)
local Gracz = getPlayerName(source)
if (msgtype == 0) then
cancelEvent()
local red, green, blue = getPlayerNametagColor(source)
outputChatBox(""..Gracz..": "..message, root, red, green, blue, true)
end
end
addEventHandler("onPlayerChat", root, Chat)

Cywile = createTeam ( "Cywile", 255, 255, 255 )
Policja = createTeam ( "Policja", 0, 100, 255 )
Pogotowie = createTeam ( "Pogotowie", 20, 220, 220 )
PomocDrogowa = createTeam ( "PomocDrogowa", 200, 30, 230 )
Taxi = createTeam ( "Taxi", 255, 200, 0 )
OSP = createTeam ( "OSP", 250, 0, 0 )
PSP = createTeam ( "PSP", 250, 0, 0 )


function Policja ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, Policja )
giveWeapon ( thePlayer, 31, 5000 )
giveWeapon ( thePlayer, 22, 5000 )
giveWeapon ( thePlayer, 3, 5000 )
setElementModel ( thePlayer, 281...
45. Tagi , frakcje i panel admina
Siema .
1.Tagi . Mam problem poniewa? gdy w??cz? tagi na serwerze to pisz? podw?jnie . Powie mi kto? dlaczego ? PRZYK?AD:
AiZi:Siema
[ADMIN]AiZi:Siema
[code]addEventHandler ( "onPlayerChat", root,
function ( message, type )
if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Moderator" ) ) and type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
outputChatBox ( "#000000[#FFF000Mod#000000]#ffffff " .. getPlayerName(source) .. ":#ffffff " .. message, getRootElement(), r, g, b, true )
elseif isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) and type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
outputChatBox ( "#000000[#FF0000Admin#000000]#ffffff " .. getPlayerName(source) .. ":#ffffff " .. message, getRootElement(), r, g, b, true )
elseif isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "SuperModerator" ) ) and type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
outputChatBox ( "#000000[#00FF00Smod#000000]#ffffff " .. getPlayerName(source) .. ":#ffffff " .. message, getRootElement(), r, g, b, true )
elseif isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)),...
46. [INNE] Jak zrobić żeby cmd działało na frakcje i typ
Witam mam tak? komend? i chce zrobi? ?eby dzia?a?a na id frakcji i na typ frakcji przest?pczej typ 3 :)
Kod:

CMD:przeszukaj(playerid, cmdtext[]) //PD && Gangi && Szajki
{
if(!ToFrakcja(playerid,2)) return 1; //To dzia?a na id frakcji
if(!ToFrakcja(playerid,PlayerInfo[playerid][pFrakcja]))return 1; // A to typ frakcji
if(FrakcjaInfo[PlayerInfo[playerid][pFrakcja]][fTyp]!=3)return 1;// to te?
new playa;
if(sscanf(cmdtext, "i",playa))
{
GuiInfo(playerid,""BIALY"U?yj: /przeszukaj (id)");
return 1;
}
if(!IsPlayerConnected(playa)||playa==playerid)
{
GuiInfo(playerid,""BIALY"Nie poprawne id gracza!");
return 1;
}
if(!OdlegloscGracze(5.0, playerid, playa))
{
GuiInfo(playerid,""BIALY"Gracz nie jest ko?o ciebie!");
return 1;
}
format(String, sizeof(String),""BIALY"(%d) %s przeszuka? ciebie",playerid,Nick[playerid]);
GuiInfo(playa,String);
WyswietlPrzedmiotyGracza(playa,playerid);
return 1;
}
47. Frakcje
Witam. Pom?g? by kto?? Gdy wpisuje /loginpoli , zmienia mi si? kolor nicku, ale pod TAB mnie nie dodaje. Wszystkie inne frakcje dzialaja poprawnie. Zepsu?o si? to po dodaniu frakcji Taxi. Oto m?j kod frakcji:

[code]function createTeamsOnStart ()

teamPD = createTeam ( "Pomoc Drogowa", 255, 50, 255 )
teamPogo = createTeam ( "Pogotowie", 255, 255, 0 )
teamUrzad = createTeam ( "Urzad", 100, 100, 100 )
teamTaxi = createTeam ( "Taxi", 255, 300, 0 )
teamPolicja = createTeam ( "Policja", 0, 0, 255 )


end

addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart )
function assignteamPD ( player )
setPlayerTeam ( player, teamPD )
spawnPlayer ( player, -1916.0999755859, 267.70001220703, 41 )
setPlayerNametagColor ( player, 255, 50, 255 )
end
addCommandHandler ( "loginpd", assignteamPD )
function assignteamPD ( player )
setPlayerTeam ( player, teamPD )
setPedSkin ( player, 50 )
end
addCommandHandler ( "loginpd", assignteamPD )
PDblip = createBlip ( -1910, 245, 36, 55, 2, 0, 255, 255, 100, 0, 500, getRootElement () )






function assignteamPogo ( player )
setPlayerTeam ( player, teamPogo )
spawnPlayer ( player, -2571, 648, 28 )
setPlayerNameTagCol...
48. Frakcje poblemy z respawn
Witajcie.

Mam problem ze skryptem. Oto on



local poli = createTeam( "Policja", 0, 0, 255 )

function poli1( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, poli )
giveWeapon ( thePlayer, 12, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 281 )
setElementPosition ( thePlayer, -1615.56445312, 681.64276123047, 7.1875 )
setPlayerNametagColor ( thePlayer, 0, 0, 255 )
else
outputChatBox( "Nie jestes pracownikiem Policji.", getRootElement())
end
end
addCommandHandler ( "loginpolicja", poli1 )

function spawnWasted(player)
spawnPlayer ( player, -1615.56445312, 681.64276123047, 7.1875, 325, math.random(19,25) )
fadeCamera(player, true)
setCameraTarget(player, player)
takePlayerMoney ( player, 0 )
takeAllWeapons ( player )
local playerName = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam(player, poli)
end
end

function functionWasted()
setTimer(spawnWasted, 3500, 1, source)
end
addEventHandler("onPlayerWasted", getRootElement(), functionWasted)






Chodzi oto ?e po dedni?ciu wywala mnie z frakcji i daje mnie na respa do ostatniej frakcji pod Tab, jednak mnie do niej nie dodaje.

I kolejna sprawa to prosi? ...
49. [INNE] Frakcje Prosze Pomóżcie
Witam Mam Taki Problem,?e Nie Umiem Napisa? Frakcji Na Server Truck Bo Nigdy Sie Nie Uczy?em,Szuka?em Na Forum S? Ale S? Z?e Komentarze ?e ?le I Tak Na Ka?dym I ?adna Z Tych Nie Dzia?a, I Czy By?cie Mi Powiedzieli Jak To Sie Robi Czy Co?? Prosze.

Szuka?em W Internecie i nic :(

Chodzi Mi Oto ?eby Admin Dawa? Dan? Frakcje Np: Policje


Za Pomoc Piwow :(

Prosze Pom??cie
50. Frakcje
Witam, chcia?bym napisa? skrypt na Frakcje co? w stylu - Imi?: Kenny Smith(Police Departament) My?l? ,?e rozumiecie chodzi mi oto ,?eby nad g?ow? danego gracza kt?ry jest dodany do frakcji wyskoczy? by napis np Police Departament
51. [INNE] Textdraw pod frakcje
Witajcie :D

Jak przypisa? textdraw pod frakcj? ? Chodzi mi o to, aby wy?wietla? tylko dla danej frakcji i nikogo wi?cej.

Za pomoc piweczka :P :piwo: :piwo: :piwo:
52. Frakcje w ikonie.
Witam troch? dziwny temat napisa?em ale nie wiedzia?em jak to napisa? teraz opisz? co chc? zrobi?. Chcia?bym doda? w ka?dej bazie Policja,Pogotowie,PomocDrogowa itp ikonke koszulki i gdy si? w ni? wejdzie ?eby dodawa?o gracza do teamu np.Policja i ?eby pisa?o "Do??czy?e? do pracy: Policja ale nie wiem od czego si? zabra? nigdy nie pisa?em kod?w lua pom??cie postawie za to :piwo: :piwo: :piwo: :piwo: :piwo:
53. FRAKCJE
Jak zrobi? ?eby po wyj?ciu z gry by? w frakcji w kt?rej byli?my zanim wyszli?my z servera
54. [INNE] TELEFON FRAKCJE
Mam wielk? pro?b? do Was, do tych dobrych Pawner?w a nawet nie, chodzi o to, aby?cie mi mo?e pokazali jak zrobi? telefon w samp i frakcje?
Prosz? Was :( Zale?y mi na tym.
55. [INNE] Jak dodać frakcje do mapy ? TRUCK !
Witam , zaczynam z pawno na razie co umiem to textdraw , obiekty , robi? sw?j serwer samp i mam pytanko moja mapa posiada frakcje takie jak
Pomoc Drogowa
-Policja
-Medyk
i inne firmy , chcia? bym doda? do frakcji jeszcze TAXI , je?eli nie ten dzia? to prosz? przenie?? chcia? bym aby taxi mia?o spawn w w?asnym miejscu , wybranym przeze mnie , + ?? ?ty nick , i przy wybiera?ce oczywi?cie by? jaki? fajny skin i aby ?aden gracz kt?ry nie jest w taxi nie m?g? go u?ywa? i je?dzi? pojazdami taxi ! , aa i komenda na dodanie to /dodaj_taxi nick .
56. [INNE] Frakcje są ale nie dziala /dodaj_
Siemka razem z koleg? robimy gm od 0 zrobili?my frakcje wszystko normalnie dzia?a.
Ale, nie dzial komenda dodaj_frakcja [nick]

Jest troche lipa bo bez tego nie ma frakcji w mapce jest taki kod :

[code] }
return 1;
}

//-----------------DODAJ I ODBIERZ

/////////////////////POLICJA
if(strcmp(cmd, "/dodaj_policja", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /dodaj_policja [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal dodany do Policji!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(POLICJA, nick, "1");
return 1;
}

if(strcmp(cmd, "/usun_policja", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /usun_policja [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal zwolniony z Policji!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(POLICJA, nick, "0");
return 1;
}
////////////////////SG
if(strcmp(cmd, "/dodaj_sg", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok...
57. [INNE] Frakcje
Witam mam to [code]C:Documents and SettingsbeataPulpitggsaXD2.pwn(964) : error 036: empty statement
C:Documents and SettingsbeataPulpitggsaXD2.pwn(995) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(998) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1000) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1002) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1004) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1006) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1008) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1010) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1012) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1014) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1016) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1018) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1020) : error 010: invalid function or declaration
C:Documents and SettingsbeataPulpitggsaXD2.pwn(1022) : error 010: invalid function or declaration
C:Documents and...
58. [GF] Bronie pod frakcje
Witam.

Napisa?em sobie komend? , kt?ra ma s?u?y? do brania broni przez policjant?w :P Komenda jest w mapie Honest-RP , lecz nie wiem dlaczego wszyscy mog? te bronie bra? , cywile , inne gangi itp.

To jest kod :

Kod:


CMD:wezbronie(playerid, cmdtext[])
{
GivePlayerWeapon(playerid,31,200);
GivePlayerWeapon(playerid,29,200);
GivePlayerWeapon(playerid,3,200);
GivePlayerWeapon(playerid,22,200);
GivePlayerWeapon(playerid,25,200);
return 1;
}


Jak zrobi? aby to by?o przypisane pod frakcj? id 1?

Za pomoc dam :arrow: :piwo:
59. [INNE] Role Play Frakcje, Admin, Umiejętności
Witam za?o?y?em ostatnio serwer Gta San andreas multiplayer 0.3d-R2 i mam problem dotycz?cy dawania frakcji, pracy, umiej?tno?ci i admin?w nawet sam sobie dac nie moge i korzystam tylko z /rcon wi?c wchodz? do scriptfiles edytuje danego gracza i daje mu Adminlvl=1339 [Head admin] lub byle jak? prac? gracz wchodz?cy na serwer nie mo?e wpisac swojego has?a na postac bo wyskakuje ze podano zle has?o co zrobic? Prosze o pomoc