-
Příspěvků
148 -
Registrován
-
Aktivní
Content Type
Profiles
Forums
Calendar
Gallery
SA-MP
Everything posted by RoBiK
-
dik uz to funguje
-
už som to opravil ale ked dam napr. /ap 0 2 tak napíše že Použitie: ...blabla skúšam to na sebe na svojom id
-
Už jsem tady zas... nefunguje mi dcmd, funguje ale no... No proste ked dam ze /ap id lvl tak to ID napise ze je moc velke pri tom som na servery(davam svoje id)... predom diky musim sa to uz naucit .
-
jop tak dik
-
dobre a ako to mam potom napisat do formatu ? nejak mi to nedošlo... inak timer viem čo je...
-
Čau, urobil som si takú vec že to do /server napíše že kolko je hráčov v LS,SF,LV, všetko mi funguje okrem lv... proste idem z /ls do /sf a to funguje, ale ked idem do /lv tak nič.. neviem čo tam mám zle, predom ďakujem . public OnPlayerUpdate(playerid) { if(IsPlayerInArea(playerid,-151, -2964, 2997, -687.5)) { if(somsf[playerid]==1) { somls[playerid]=1; somlv[playerid]=0; somsf[playerid]=0; lsp++; sfp--; } } else if(IsPlayerInArea(playerid,-151, -2964, 2997, -687.5)) { if(somlv[playerid]==1) { somls[playerid]=1; somlv[playerid]=0; somsf[playerid]=0; lvp--; lsp++; } } else if(IsPlayerInArea(playerid,-2925, -919.5, -1212, 1594.5)) { if(somls[playerid]==1) { somls[playerid]=0; somlv[playerid]=0; somsf[playerid]=1; lsp--; sfp++; } } else if(IsPlayerInArea(playerid,-2925, -919.5, -1212, 1594.5)) { if(somlv[playerid]==1) { somls[playerid]=0; somlv[playerid]=0; somsf[playerid]=1; lvp--; sfp++; } } else if(IsPlayerInArea(playerid,-505, 491.5, 2841, 2933.5)) { if(somls[playerid]==1) { somls[playerid]=0; somlv[playerid]=1; somsf[playerid]=0; lvp++; lsp--; } } else if(IsPlayerInArea(playerid,-505, 491.5, 2841, 2933.5)) { if(somsf[playerid]==1) { somls[playerid]=0; somlv[playerid]=1; somsf[playerid]=0; sfp--; lvp++; } } return 1; }
-
díky funguje.
-
Čaute, neviem ako mam vyhladavat toto: Chcem to, že keby niekto dal text, ktorý je menší než 7 písmen tak by ho to nepustilo.. Predom diky. PS: Viem to iba so sumou(čislom) že if(niečo<=7)...blabla ale s TEXTom to neviem.
-
aha díky už to mam
-
díky nejako som to opravil, niekedy sa stane ze sa nejaky hrac odpoji a mne sa nastavi vsetko na 0 jak keby, ale ked dam /kill (deaths[playerid]++ tak mam to zase spatky
-
aha takže tie dva timery (SetTimer("tabulka"... aj tabulka2) mam dat prec z toho for() že ? a nejake pole to nwm nejsom až taky skúseny
-
takže som to nejako urobil že hore kde boli tie forwardy som dal preč playerid a tu v tabulka2,tabulka tiež, nevyhadzuje errory ale server sa zapne asi na 5 sec ;( public tabulka() { for(new id; id<MAX_PLAYERS; id++) { PlayerTextDrawHide(id,Textdraw0); SetTimer("tabulka2",200,false); } return 1; } public tabulka2() { for(new id; id<MAX_PLAYERS; id++) { new string2[150]; format(string2,150,"~l~ I Kills: ~y~%d ~l~I Deaths: ~y~}%d ~l~I EoS ~g~%d : ~r~%d ~l~Away I",kills[id],deaths[id],body_green,body_away); Textdraw0 = CreatePlayerTextDraw(id,4.000000, 435.000000,string2); PlayerTextDrawBackgroundColor(id,Textdraw0, 255); PlayerTextDrawFont(id,Textdraw0, 2); PlayerTextDrawLetterSize(id,Textdraw0, 0.500000, 1.000000); PlayerTextDrawColor(id,Textdraw0, 255); PlayerTextDrawSetOutline(id,Textdraw0, 0); PlayerTextDrawSetProportional(id,Textdraw0, 0); PlayerTextDrawSetShadow(id,Textdraw0, 1); PlayerTextDrawUseBox(id,Textdraw0, 1); PlayerTextDrawBoxColor(id,Textdraw0, 16777215); PlayerTextDrawTextSize(id,Textdraw0, 636.000000, 419.000000); PlayerTextDrawSetSelectable(id,Textdraw0, 0); PlayerTextDrawShow(id, Textdraw0); SetTimer("tabulka",3500,false); } return 1; } s for() som nikdy nerobil takže neviem
-
ok takze ukazuje good ale mam chybu, ID 0 ukazuje vsetko spravne, killy, deaths aj EoS body a Away body. Ale ! dalsim ID sa uz ani neobnovuje ten Textdraw(nezmizne a zase sa objavi) ani sa neukazuju tie čísla, kód: Hore new deaths[MAX_PLAYERS];new kills[MAX_PLAYERS];forward tabulka(playerid);forward tabulka2(playerid); OnPlayerConnect new string2[150]; deaths[playerid]=0; kills[playerid]=0; format(string2,150,"~l~ I Kills: ~y~%d ~l~I Deaths: ~y~}%d ~l~I EoS ~g~%d : ~r~%d ~l~Away I",kills[playerid],deaths[playerid],body_green,body_away); Textdraw0 = CreatePlayerTextDraw(playerid,4.000000, 435.000000,string2); PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255); PlayerTextDrawFont(playerid,Textdraw0, 2); PlayerTextDrawLetterSize(playerid,Textdraw0, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw0, 255); PlayerTextDrawSetOutline(playerid,Textdraw0, 0); PlayerTextDrawSetProportional(playerid,Textdraw0, 0); PlayerTextDrawSetShadow(playerid,Textdraw0, 1); PlayerTextDrawUseBox(playerid,Textdraw0, 1); PlayerTextDrawBoxColor(playerid,Textdraw0, 16777215); PlayerTextDrawTextSize(playerid,Textdraw0, 636.000000, 419.000000); PlayerTextDrawSetSelectable(playerid,Textdraw0, 0); PlayerTextDrawShow(playerid, Textdraw0); OnPlayerDeath deaths[playerid]++; kills[killerid]++; a potom uz dole
-
aha dik skusim díky ide ! môžte lock
-
Ahoj, robil som PlayerTextDraw, neviem či bolo všetko správne ale je tu jedna chyba. Nejaký text chcem mať tou farbou a nejaký inou, bohužial mi to ukázalo nejako takto: ?000000?Kills atd... Neviete ako inak ? format(string2,150,"{000000}I Kills: {23E11A}%d {000000}I Deaths: {23E11A}%d {000000}I EoS{23E11A} %d : {FF0000}%d {000000}Away I",kills[playerid],deaths[playerid],body_green,body_away);
-
Ahoj, da sa nejako inak nastavit okrem toho lagcomponsationmod lagshoot ? Myslim aby sa mierilo pred skin . Lebo som počul že sa to da aj cez PAWNO. Lebo ked to date cez ten server.cfg tak to je taka slabota.
-
diky moc, nenapadlo ma to
-
takže stiahol som si inu a tu som sa nedostal ani na server errory nehádže, (localhost) samp-server.exe ukazuje niečo takéto: diky
-
je to registracia od Y_Lessa (pastebin:http://pastebin.com/r4htbbcJ)
-
Čaute, neviete aky je problem v tejto registrácii ? Errory nehádže, prídem na server(localhost) registrujem sa, dám heslo, napíše niečo že ini funguje správne alebo tak, napíše aj že relog a uložia sa mi stats, dám relog a idem sa lognut, dam heslo a ze nespravne kukam sa tam kde to ma ukladat(scriptfiles/Users/nick.ini) a nič tam nieje napísane. KOD predom diky
-
oka diky skusim niečo
-
Čaute neviete ako urobiť uloženie pozície cez dUserINT alebo ako ? predom diky a potom vyvolanie ked sa pripoji ?
-
aha a neviete prečo mi toto nefunguje ? public OnPlayerUpdate(playerid) { if(IsPlayerAdmin(playerid)){ new str[26];new meno[26]; GetPlayerName(playerid, meno, 26); format(str, 26, "{FF0000}[ ADMIN ]{FFFFFF}s",meno); SetPlayerName(playerid,str); } return 1; } žiadne errory ale proste nefunguje lognem sa za rcon ale nestane sa toto môže to byť tym {FF0000} ? diky
-
diky a ešte že, ako urobiť drift coin ? neviem si predstaviť žiadnu funkciu ktora vlastne ako keby detekuje šmyk alebo niečo také... predom dakujem