Wysłany: 2012-02-26, 20:51
GlockPL
Wiek: 27 Na forum: 5256 dni Posty: 27
Nick w MP: KmL lub Black
Piwa : 63
Kod: B??d
Zapytanie SQL:
CREATE ALGORITHM=UNDEFINED DEFINER=`fullserver`@`%` SQL SECURITY DEFINER VIEW `fs_view_housesandvehicles` AS select `h`.`id` AS `id`,`h`.`X` AS `X`,`h`.`Y` AS `Y`,`h`.`Z` AS `Z`,`h`.`exitX` AS `exitX`,`h`.`exitY` AS `exitY`,`h`.`exitZ` AS `exitZ`,`h`.`exitA` AS `exitA`,ifnull(`h`.`ownerid`,0) AS `ownerid`,`h`.`koszt` AS `koszt`,ifnull(`p`.`nick`,_ascii'nn') AS `nick`,ifnull(`h`.`paidTo`,_utf8'-') AS `IFNULL (h.paidTo,'-')`,ifnull((to_days(`h`.`paidTo`) - to_days(now())),-(1)) AS `IFNULL(DATEDIFF(h.paidTo,NOW()),-1)`,`h`.`homeX` AS `homeX`,`h`.`homeY` AS `homeY`,`h`.`homeZ` AS `homeZ`,`h`.`homeA` AS `homeA`,`h`.`homeI` AS `homeI`,`h`.`homeVW` AS `homeVW`,`h`.`vehicles_allowed` AS `vehicles_allowed`,`h`.`vehicle_radius` AS `vehicle_radius`,ifnull(`hv`.`model`,0) AS `IFNULL(hv.model,0)`,ifnull(`hv`.`X`,0) AS `IFNULL(hv.X,0)`,ifnull(`hv`.`Y`,0) AS `IFNULL(hv.Y,0)`,ifnull(`hv`.`Z`,0) AS `IFNULL(hv.Z,0)`,ifnull(`hv`.`A`,0) AS `IFNULL(hv.A,0)`,ifnull(`hv`.`color1`,0) AS `IFNULL(hv.color1,0[...]
MySQL zwr?ci? komunikat:
#1227 - Access denied; you need the SUPER privilege for this operation
To si? dzieje jak pr?buj? wgra? fs-20110826-structure.sql.bz2 .
W dodatku brakuje mi czego? tu ?
Kod: echo Executing Server Config...
lanmode 0
rcon_password ******* (ROT13)
maxplayers 70
port 1195
hostname PolskiSerwerPrzyszlosci™? [PSP] 69Host
gamemode0 fs
filterscripts
query 1
weburl www.psp.xaa.pl
plugins streamer.so sscanf.so audio.so MapAndreas.so mysql.so
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
Wysłany: 2012-02-26, 23:16
es2
Wiek: 30 Na forum: 5796 dni Posty: 75
Nick w MP: eider
Piwa : 3406
Cytat: #1227 - Access denied; you need the SUPER privilege for this operation
Twoje konto MySQL nie posiada uprawnie? do tworzenia widok?w tabel. Popro? Administratora o nadanie Ci takich uprawnie?.
Wysłany: 2012-02-28, 08:39
Pedigree13
Wiek: 37 Na forum: 5262 dni Posty: 21
Nick w MP: Christian_Randers
Piwa : 361
ja mam juz mape w amx wszystko tylko jak podpiac pod mysql kto pomoze?dam piwko i nawet moze zaplace!!!!!!!!!!!!!
[ Dodano : 2012-02-28, 08:45 ]
a gdzie to wgraC?fs-20110826-structure.sql.bz2 . ale do tematu postu wyzej tez prosze
Wysłany: 2012-02-28, 15:25
lukasz57570
Wiek: 30 Na forum: 5950 dni Posty: 29
Piwa : 619
"Pedigree13" napisał/a :ja mam juz mape w amx wszystko tylko jak podpiac pod mysql kto pomoze?dam piwko i nawet moze zaplace!!!!!!!!!!!!!
[ Dodano : 2012-02-28, 08:45 ]
a gdzie to wgraC?fs-20110826-structure.sql.bz2 . ale do tematu postu wyzej tez prosze
Przeczytaj dok?adnie to co napisa?em w w?tkach wy?ej.
Wysłany: 2012-03-01, 15:44
mazda.rx8
Wiek: 35 Na forum: 6245 dni Posty: 12
Piwa : 2
mi juz mapka odpalila.. ;d .. tylko ze caly czas na czacie mi spamuje ''wg rozpocznie sie za ..sekund'' ''chwoany rozpocznie sie za .. sekund'' tak wszystki zapisy... caly czas tak spamuje .. ;/
Wysłany: 2012-03-03, 17:22
Cris2k
Wiek: 48 Na forum: 5338 dni Posty: 4
Nick w MP: Dylan_Simple
mazda , bo pewnie wykomentowa?e? linijki w ysi timers , prawda ? te? tak mam .
Prosz? o pomoc!
Gdy kompiluje mape w cmd wywala errory w ysi timers "empty statement" prosz? o pomoc!
Wysłany: 2012-03-06, 21:38
GSSweet
Wiek: 29 Na forum: 5520 dni Posty: 14
Nick w MP: Nexus
Mam problem bo jak odpalam serwer to mi taki b??d wyskakuje
Kod: [20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_query called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20] Dane graczy zapisane
[20] [MySQL] Error (0): Function: mysql_close called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061).
[20] [0-20] Blad MySQL: Function: mysql_close called when not connected to any database. Can't connect to MySQL server on '127.0.0.1' (10061). (ID: 4)
[20]
Prosz? pom??cie mi bo chce postawi? domowy serwer
Wysłany: 2012-03-06, 21:44
faza380
Wieje sandałem.
Wiek: 33 Na forum: 6188 dni Posty: 26
Nick w MP: Faza
Piwa : 282
Nie ??czy cie z baz? danych.
Wysłany: 2012-03-06, 21:47
GSSweet
Wiek: 29 Na forum: 5520 dni Posty: 14
Nick w MP: Nexus
wiem ?e mnie nie ??czy tylko ?e ja chcia?em serwer przez hamachi zrobi? bo z kolegami chcemy pogra? na serwerze
Podpis
<img src='https://panel.pylife.pl/i/154679.pasek1.png' width='450' height='33' alt='Nexus1997' />
Wysłany: 2012-03-07, 19:52
Regz
Wiek: 33 Na forum: 5270 dni Posty: 12
Nick w MP: Regz
teraz pytanie: jak tu sobie nada? admina?
[ Dodano : 2012-03-08, 11:31 ]
otrzymam odpowied? ?
[ Dodano : 2012-03-08, 12:19 ]
LicenseVerify() i zmiana rcona g?wno jak ca?y FS.
Ta p?tla w OnGameModeInit i jej wykonanie w timerze to spos?b na pozbycie si? konkurencji?
Oczyszcz? t? mapk? z syfu i opublikuj? tutaj jeszcze raz w tym temacie z kompletn? dokumentacj? jak b?d? mia? czas ...
[ Dodano : 2012-03-08, 12:34 ]
Kod:
GetServerVarAsString("bind", gmData[serverIP], sizeof gmData[serverIP]);
// zabezpieczenie przeciwko odpalaniu na innym adresie ip
if (strcmp(gmData[serverIP],GMHOST,false)!=0)
SendRconCommand("exit");
to te? jest nie potrzebne
[ Dodano : 2012-03-08, 12:37 ]
Kod:
SendRconCommand("unbanip *.*.*.*");
nie chce odbanowywa? wszystkich ludzi za ka?dym razem jak restart serwera jest
[ Dodano : 2012-03-08, 14:11 ]
ps. wasze logowanie do admina jest smieciowate i nie potrzebne w calosci doskonale wystarcza poziomy administracyjne i pin admina konfigurowany na poczatku jesli przychodzi z innego adresu ip wtedy musi go podac ponownie.
[ Dodano : 2012-03-08, 15:34 ]
ps. liste komend adminow i gmow tez wywaliliscie ? dziekujemy
Wysłany: 2012-03-08, 19:13
es2
Wiek: 30 Na forum: 5796 dni Posty: 75
Nick w MP: eider
Piwa : 3406
Cytat: nie chce odbanowywa? wszystkich ludzi za ka?dym razem jak restart serwera jest
No widzisz, nawet nie sprawdzi?e? kodu :-) Bany s? w MySQL
Cytat: ps. wasze logowanie do admina jest smieciowate i nie potrzebne w calosci doskonale wystarcza poziomy administracyjne i pin admina konfigurowany na poczatku jesli przychodzi z innego adresu ip wtedy musi go podac ponownie.
Ka?dy ma swoje pomys?y jak zrealizowa? dan? rzecz. Pisanie, ?e co? jest ?mieciowe, bo ty tak uwa?asz i uznajesz za lepszy inny spos?b logowania na Admina - zupe?nie bez sensu...
Cytat: ps. liste komend adminow i gmow tez wywaliliscie ? dziekujemy
A sprawdza?e? kod? /include/fulserver/commands_other.inc -> Linia 927 - "CMD:admin", Linia 972 - "CMD:vips". I jak? ;>
Cytat: teraz pytanie: jak tu sobie nada? admina?
https://github.com/lpiob/FullServer-XyzzyDM/blob/master/README
Ostatnio zmieniony przez es2 2012-03-08, 19:21, w całości zmieniany 1 raz
Wysłany: 2012-03-08, 19:21
CRX
Wiek: 34 Na forum: 5679 dni Posty: 114
Piwa : 106
"Regz" napisał/a :teraz pytanie: jak tu sobie nada? admina?
[ Dodano : 2012-03-08, 11:31 ]
otrzymam odpowied? ?
[ Dodano : 2012-03-08, 12:19 ]
LicenseVerify() i zmiana rcona dno jak ca?y FS.
Ta p?tla w OnGameModeInit i jej wykonanie w timerze to spos?b na pozbycie si? konkurencji?
Oczyszcz? t? mapk? z syfu i opublikuj? tutaj jeszcze raz w tym temacie z kompletn? dokumentacj? jak b?d? mia? czas ...
[ Dodano : 2012-03-08, 12:34 ]
Kod:
GetServerVarAsString("bind", gmData[serverIP], sizeof gmData[serverIP]);
// zabezpieczenie przeciwko odpalaniu na innym adresie ip
if (strcmp(gmData[serverIP],GMHOST,false)!=0)
SendRconCommand("exit");
to te? jest nie potrzebne
[ Dodano : 2012-03-08, 12:37 ]
Kod:
SendRconCommand("unbanip *.*.*.*");
nie chce odbanowywa? wszystkich ludzi za ka?dym razem jak restart serwera jest
[ Dodano : 2012-03-08, 14:11 ]
ps. wasze logowanie do admina jest smieciowate i nie potrzebne w calosci doskonale wystarcza poziomy administracyjne i pin admina konfigurowany na poczatku jesli przychodzi z innego adresu ip wtedy musi go podac ponownie.
[ Dodano : 2012-03-08, 15:34 ]
ps. liste komend adminow i gmow tez wywaliliscie ? dziekujemy
Ta i co jeszcze?
Mi IP zmienia si? co uruchomienie komputera, za ka?dym razem mia?bym wpisywa? jaki? '?mieciowy' pin?
Wystarczy MD5+Salt i nikt si? nie w?amie, chyba ?e Administrator poda has?o do swojego konta.
Wysłany: 2012-03-09, 10:02
Regz
Wiek: 33 Na forum: 5270 dni Posty: 12
Nick w MP: Regz
Uwierz mi ?e bezsensowne jest kodowanie np. dodatkowych kodowa? na rconie wystarczy pu?ci? bf na port 22 albo u?y? m?zgu ewentualnie exploitka znalezionego w sieci b?d? napisanego przez siebie i wy??czasz serwer u ?r?d?a zamiast si? pieprzy? w bf rcona. Zreszt? od tego masz mo?liwo?? zmiany has?a rcona ?eby z niej korzysta? dajesz d?u?sze hase?ko rcon i jest bezpiecznie, nie potrzeba ju? kombinowa?. Popieram ?e osoby kt?re nie maj? odpowiedniej warto?ci w SQLu nie mog? si? do niego zalogowa? ale nie popieram tego ?nieciowatego logowania na admina (albo kto? jest adminem albo nie jest). Typowa nadgorliwo?? osoby kt?ra to pisa?a.
Wysłany: 2012-03-09, 10:25
Wielebny
Wiek: 41 Na forum: 5507 dni Posty: 257
Nick w MP: Wielebny
Piwa : 1690
"Regz" napisał/a :Uwierz mi ?e bezsensowne jest kodowanie np. dodatkowych kodowa? na rconie
Haslo jest "zaszyfrowane" po to, aby osoba ktora uzyska dostep do FTP (badz tez inna droga odczyta plik server.cfg), nie miala hasla RCON na wierzchu.
Cytat:
Kod:
SendRconCommand("unbanip *.*.*.*");
nie chce odbanowywa? wszystkich ludzi za ka?dym razem jak restart serwera jest
To zasz?o?? z wersji 0.3c - banip *.*.*.* przed restartem to jeden ze sposob?b, aby ka?dy gracz po??czy? si? od nowa bez losta. W 0.3d nie jest ju? to potrzebne.
Wysłany: 2012-03-09, 12:04
Regz
Wiek: 33 Na forum: 5270 dni Posty: 12
Nick w MP: Regz
Cytat:
Haslo jest "zaszyfrowane" po to, aby osoba ktora uzyska dostep do FTP (badz tez inna droga odczyta plik server.cfg), nie miala hasla RCON na wierzchu.
Od tego jest w mapce regu?a stanowi?ca ?e je?li u?ytkownik w bazie danych nie b?dzie posiada? odpowiedniego argumentu i zaloguje si? do rcona wylatuje.
Cytat:
To zasz?o?? z wersji 0.3c - banip *.*.*.* przed restartem to jeden ze sposob?b, aby ka?dy gracz po??czy? si? od nowa bez losta. W 0.3d nie jest ju? to potrzebne.
Tego akurat nie wiedzia?em.
Pocz?tkowe zmiany:
Kod:
0x0001 | Zmiana z [adminLevel] na [allowedLevel] w plikach:
fullserver\artefact.inc
fullserver\commands_admin.inc
fullserver\commands_gm.inc
fullserver\commands_other.inc
fullserver\commands_vip.inc
fullserver\domy.inc
fullserver\exports.inc
fullserver\objects.inc
fullserver\scripting_functions.inc
fullserver\utility_functions.inc
fullserver\vehicles.inc
0x0002 | Usuni?cie zb?dnych funkcji (alogin, ahaslo):
fullserver\commands_admin.inc
0x0003 | Usuni?cie ?mieciowatego systemu licencji:
fullserver\license.inc
0x0004 | Poprawki (pozosta?o?ci po licencji):
fullserver\timers.inc:
- if (eivah8aa[0]!='e') {
- iz7ex6ie=-1;
- OnGameModeInit();
- }
fs.pwn:
- #include "fullserver/license"
- if (iz7ex6ie<0) OnGameModeInit();
0x0005 | Usuni?cie ?mieciowatego napisu:
- printf( "d88888b db db db db .d8888. d88888b d8888b. db db d88888b d8888b. ");
- printf( "88' 88 88 88 88 88' YP 88' 88 `8D 88 88 88' 88 `8D ");
- printf( "88ooo 88 88 88 88 `8bo. 88ooooo 88oobY' Y8 8P 88ooooo 88oobY' ");
- printf( "88~~~ 88 88 88 88 `Y8b. 88~~~~~ 88`8b `8b d8' 88~~~~~ 88`8b ");
- printf( "88 88b d88 88booo. 88booo. db 8D 88. 88 `88. `8bd8' 88. 88 `88. ");
- printf( "YP ~Y8888P' Y88888P Y88888P `8888Y' Y88888P 88 YD YP Y88888P 88 YD\n\n");
0x0006 | Usuni?cie fotoradar?w:
fs_header
- e_fotocash, // oprogramowane - kasa wydana na fotoradary
objects
- ea_fotocash,
- // kwota mandatow
- CreateDynamicMapIcon(625.0,-590.0,15.5,33,1,0,0,-1,1200);
- CreateDynamicObject(11489,625,-590,15.5, 0,0,90, 0,0, -1, 300);
- TekstyPomniki[ea_fotocash][0]=CreateDynamic3DTextLabel("Najwieksi piraci drogowi\nNajwieksze mandaty za predkosc",0xFF5219FF,625.00,-590,15.50+1, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1,0,0);
- TekstyPomniki[ea_fotocash][1]=CreateDynamic3DTextLabel("_",0xffffffff,625.00,-590,15.50+3, 30, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1,0,0);
- TekstyPomniki[ea_fotocash][2]=CreateDynamic3DTextLabel("_",0xe0e0e0e0,625.00+2,-590+5,15.50+2, 30, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1,0,0);
- TekstyPomniki[ea_fotocash][3]=CreateDynamic3DTextLabel("_",0xd0d0d0d0,625.0+2,-590-5,15.50+2, 30, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1,0,0);
- if (force || random(3)==1) {
- // mandaty
- mysql_query("SELECT pa.playerid,p.nick,pa.score mandaty FROM fs_players_achievements pa JOIN fs_players p on pa.playerid=p.id WHERE pa.shortname='FOTOCASH' ORDER BY pa.score DESC limit 3;");
- mysql_store_result();
- i=0;
- // UpdateDynamic3DTextLabelText(TekstyPomniki[ea_derby][0], 0xFF5219FF, "Mistrzowie /derby");
- if (mysql_num_rows())
- while (mysql_fetch_row(buffer,"|")) {
- i++;
- if(sscanf(buffer,"p<|>ds[32]d", pid, pnick, pval))
- format(buffer,sizeof buffer, "-");
- else
- format(buffer,sizeof buffer, "%d. %s\n{ffffff}%d$", i, pnick, pval);
- UpdateDynamic3DTextLabelText(TekstyPomniki[ea_fotocash][i], 0xFF5219FF, buffer);
- }
- mysql_free_result();
- }
- obiekty_Fotokomorka(playerid){
- if (!IsPlayerInAnyVehicle(playerid)) return 1;
- new vid=GetPlayerVehicleID(playerid);
- new spd=GetVehicleSpeed(vid);
- new Float:VV[3];
- GetVehicleVelocity(vid,VV[0],VV[1],VV[2]);
- if (spd>110 && floatabs(VV[2])<(floatabs(VV[0])+floatabs(VV[1]))) {
- new buf[128];
- FlashScreen(playerid);
- format(buf,sizeof buf,"_~n~_~n~_~n~_~n~_~n~~r~%d KM/h~n~~w~Jedziesz zbyt szybko!", spd);
- GameTextForPlayer(playerid, buf, 4000, 6);
- if (Audio_IsClientConnected(playerid))
- Audio_Play(playerid,50,false,false,true);
-
- if (GetPlayerState(playerid)!=PLAYER_STATE_DRIVER) return 1;
- if (pTemp[playerid][faction]==FACTION_POLICE || pTemp[playerid][faction]==FACTION_ARMY) return 1; // policjanci i wojskowi nie dostaja mandatow
-
- format(buf,sizeof buf,"[FOTORADAR] {ff5050}Przekroczyles dopuszczalna predkosc! {50ff50}Mandat: {ffffff}%d$", floatround(spd/4));
- SendClientMessage(playerid,-1,buf);
- avt_record(playerid,e_fotocash,floatround(spd/4),ART_ADD);
- IncreasePlayerHitman(playerid, floatround(spd/4));
-
-
- }
- return 1;
- }
- for (new i=0;i<sizeof Fotoradary;i++)
- if (Fotoradary[i]==areaid)
- return obiekty_Fotokomorka(playerid);
0x0007 | Usuni?cie animacji na napisu po lewej stronie:
scripting_functions
- forward AnimateFullServerLogo();
- public AnimateFullServerLogo()
- {
-
- if(gmTemp[fsaIndex] <= 22)
- {
- new
- buffer[128];
-
- switch(gmTemp[fsaIndex])
- {
- case 0: format(buffer, sizeof buffer, "~r~w~w~ww.FullServer.eu");
- case 1: format(buffer, sizeof buffer, "~r~~h~w~r~w~w~w.FullServer.eu");
- case 2: format(buffer, sizeof buffer, "~r~~h~~h~w~r~~h~w~r~w~w~.FullServer.eu");
- case 3: format(buffer, sizeof buffer, "~r~~h~~h~~h~w~r~~h~~h~w~r~~h~w~r~.~w~FullServer.eu");
- case 4: format(buffer, sizeof buffer, "~r~~h~~h~~h~~h~w~r~~h~~h~~h~w~r~~h~~h~w~r~~h~.~r~F~w~ullServer.eu");
- case 5: format(buffer, sizeof buffer, "~r~~h~~h~~h~~h~~h~w~r~~h~~h~~h~~h~w~r~~h~~h~~h~w~r~~h~~h~.~r~~h~F~r~u~w~llServer.eu");
- case 6: format(buffer, sizeof buffer, "w~r~~h~~h~~h~~h~~h~w~r~~h~~h~~h~~h~w~r~~h~~h~~h~.~r~~h~~h~F~r~~h~u~r~l~w~lServer.eu");
- case 7: format(buffer, sizeof buffer, "ww~r~~h~~h~~h~~h~~h~w~r~~h~~h~~h~~h~.~r~~h~~h~~h~F~r~~h~~h~u~r~~h~l~r~l~w~Server.eu");
- case 8: format(buffer, sizeof buffer, "www~r~~h~~h~~h~~h~~h~.~r~~h~~h~~h~~h~F~r~~h~~h~~h~u~r~~h~~h~l~r~~h~l~r~S~w~erver.eu");
- case 9: format(buffer, sizeof buffer, "www.~r~~h~~h~~h~~h~~h~F~r~~h~~h~~h~~h~u~r~~h~~h~~h~l~r~~h~~h~l~r~~h~S~r~e~w~rver.eu");
- case 10: format(buffer, sizeof buffer, "www.F~r~~h~~h~~h~~h~~h~u~r~~h~~h~~h~~h~l~r~~h~~h~~h~l~r~~h~~h~S~r~~h~e~r~r~w~ver.eu");
- case 11: format(buffer, sizeof buffer, "www.Fu~r~~h~~h~~h~~h~~h~l~r~~h~~h~~h~~h~l~r~~h~~h~~h~S~r~~h~~h~e~r~~h~r~r~v~w~er.eu");
- case 12: format(buffer, sizeof buffer, "www.Ful~r~~h~~h~~h~~h~~h~l~r~~h~~h~~h~~h~S~r~~h~~h~~h~e~r~~h~~h~r~r~~h~v~r~e~w~r.eu");
- case 13: format(buffer, sizeof buffer, "www.Full~r~~h~~h~~h~~h~~h~S~r~~h~~h~~h~~h~e~r~~h~~h~~h~r~r~~h~~h~v~r~~h~e~r~r~w~.eu");
- case 14: format(buffer, sizeof buffer, "www.FullS~r~~h~~h~~h~~h~~h~e~r~~h~~h~~h~~h~r~r~~h~~h~~h~v~r~~h~~h~e~r~~h~r~r~.~w~eu");
- case 15: format(buffer, sizeof buffer, "www.FullSe~r~~h~~h~~h~~h~~h~r~r~~h~~h~~h~~h~v~r~~h~~h~~h~e~r~~h~~h~r~r~~h~.~r~e~w~u");
- case 16: format(buffer, sizeof buffer, "www.FullSer~r~~h~~h~~h~~h~~h~v~r~~h~~h~~h~~h~e~r~~h~~h~~h~r~r~~h~~h~.~r~~h~e~r~u");
- case 17: format(buffer, sizeof buffer, "www.FullServ~r~~h~~h~~h~~h~~h~e~r~~h~~h~~h~~h~r~r~~h~~h~~h~.~r~~h~~h~e~r~~h~u");
- case 18: format(buffer, sizeof buffer, "www.FullServe~r~~h~~h~~h~~h~~h~r~r~~h~~h~~h~~h~.~r~~h~~h~~h~e~r~~h~~h~u");
- case 19: format(buffer, sizeof buffer, "www.FullServer~r~~h~~h~~h~~h~~h~.~r~~h~~h~~h~~h~e~r~~h~~h~~h~u");
- case 20: format(buffer, sizeof buffer, "www.FullServer.~r~~h~~h~~h~~h~~h~e~r~~h~~h~~h~~h~u");
- case 21: format(buffer, sizeof buffer, "www.FullServer.e~r~~h~~h~~h~~h~~h~u");
- case 22: format(buffer, sizeof buffer, "www.FullServer.eu");
- }
-
- TextDrawSetString(gTextDraw[TD_FULLSERVERWEBSITE], buffer);
- gmTemp[fsaIndex]++;
- } else
- KillTimer(gmTemp[fsaTimer]);
- }
timers
- Timer:LogoAnimation[50000](){
- // printf("Timer LogoAnimation");
- gmTemp[fsaIndex] = 0;
- gmTemp[fsaTimer] = SetTimer("AnimateFullServerLogo", gmTemp[pPlayerCount]<100?120:240, true);
- }
0x0008 | Poprawka do komendy /flip (nie naprawia?o samochodu)
commands
po: tVehicles[vid][vo_used]=true;
+ RepairVehicle(vid);
+ SetVehicleHealth(vid,VEHICLE_DEFAULT_HP);
0x0009 | Usuni?cie kilku zb?dnych komend:
commands_other
- CMD:nrg(playerid)
- return spawnVehicleForPlayer(playerid,522,true);
-
- CMD:fcr(playerid)
- return spawnVehicleForPlayer(playerid,521,true);
-
- CMD:freeway(playerid) {
- new vid=spawnVehicleForPlayer(playerid,463,true);
- vehicleDoorState[vid] = DOOR_OPENED;
- vehicleDoorOwner[vid] = playerid;
- tVehicles[vid][vo_destroyIfEmpty]=true;
- return 1;
- }
Dzi?kuje w imieniu os?b kt?re b?d? stawia?y na tej mapce serwer za usuni?cie listy pojazd?w z SQL. ( + 1 )
Ostatnio zmieniony przez Regz 2012-03-09, 15:02, w całości zmieniany 2 razy
Tagi: fullserver :: xyzzydm :: v3.3r1000
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: