H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Čus, včera jsem v gamemodu dělal nějaký ikonky, jenže mám problém ... Vytvořila se ikonka která vypadá jako by na mapě byl hráč .... Potřebuju tohle: http://wiki.sa-mp.com/wiki/MapIcons Budu rád za každej help ... ThX Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 dej screen jak vypadá ve hřeid ktere chceša code jak ho máš v fs nebo gm Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 Ve hře je to ten trojúhelník co označuje hráče ... a v onplayerconnect mám: SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 a kde je problem? Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 Nechci ten posranej trojúhelník ale třeba znak dollaru Link to comment Share on other sites More sharing options...
0 Huzy 11 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Dej do public OnGameModeInit() Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 Zkusím To mi háže errory. Jak to tam mám zadat? Dost jsem zapoměl jak jsem rok nepawnil ... Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Dej do public OnGameModeInit() Ty Jsi Genius A kde jako vezme hodnotu PlayerID? a pro tebe henry když uz ti radí dej si to do OnGameModeInit tak tam dej todle . . . for(new i = 0;i<MAX_PLAYERS;i++) {SetPlayerMapIcon( i, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); } Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 Thx. Ale stejně to nejde Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Thx. Ale stejně to nejde a včem ti to nejde? možne je že ID 12 už máš nekde obsazene Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 /*---------------Icons------------------*/ for(new i = 0;i<MAX_PLAYERS;i++) { SetPlayerMapIcon(i,52,-180.0392,1133.2166,19.7422, 52, 0, MAPICON_LOCAL ); } return true; } Takhle to tam mám, ve hře se nic nezobrazuje. Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 do ongamemodeinit to preboha nedavaj, daj to do onplayerconnect, a musi ti to isť, kód je dobry Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 do ongamemodeinit to preboha nedavaj, daj to do onplayerconnect, a musi ti to isť, kód je dobry Bud to a nebo to oboje by šlo ale lepší je to do OnPlayerConnect no . . . Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 30. Listopad, 2013 Author Share Odesláno: 30. Listopad, 2013 Já jsem deb*l ... Link to comment Share on other sites More sharing options...
0 Huzy 11 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Ty Jsi Genius A kde jako vezme hodnotu PlayerID? a pro tebe henry když uz ti radí dej si to do OnGameModeInit tak tam dej todle . . . for(new i = 0;i<MAX_PLAYERS;i++) {SetPlayerMapIcon( i, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); } Aspon jsem Genius s velkým G Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Aspon jsem Genius s velkým G Genius s velkym G ale malem p Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Ty Jsi Genius A kde jako vezme hodnotu PlayerID? a pro tebe henry když uz ti radí dej si to do OnGameModeInit tak tam dej todle . . . for(new i = 0;i<MAX_PLAYERS;i++) {SetPlayerMapIcon( i, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); } Uvedomujes si, ze kdyz zapinas server tak zadny hrac neni pripojen ? A ze kdyz se pripoji tak se mu ikonka uz nezobrazi. PS:Trojuhelnik to zobrazuje, kdz ses nad/pod tim bodem, kde je ikonka umistena, kdyz jsi +- na stejne urovni je tam ctverecek. SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); > SetPlayerMapIcon( playerid, 0, 2204.9468, 1986.2877, 16.7380, 52, 12, MAPICON_LOCAL ); Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 30. Listopad, 2013 Share Odesláno: 30. Listopad, 2013 Ty Jsi Genius A kde jako vezme hodnotu PlayerID? a pro tebe henry když uz ti radí dej si to do OnGameModeInit tak tam dej todle . . . for(new i = 0;i<MAX_PLAYERS;i++) {SetPlayerMapIcon( i, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); } Uvedomujes si, ze kdyz zapinas server tak zadny hrac neni pripojen ? A ze kdyz se pripoji tak se mu ikonka uz nezobrazi. PS:Trojuhelnik to zobrazuje, kdz ses nad/pod tim bodem, kde je ikonka umistena, kdyz jsi +- na stejne urovni je tam ctverecek. SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); > SetPlayerMapIcon( playerid, 0, 2204.9468, 1986.2877, 16.7380, 52, 12, MAPICON_LOCAL ); Thx :da nebo se vyseru na SetPlayerMapIcon a budu používat Streamer Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 Thx :da nebo se vyseru na SetPlayerMapIcon a budu používat Streamer Streamer pouziva SetPlayerMapIcon Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 Streamer pouziva SetPlayerMapIcon Nene taky jsem se divil ale je tam funkce CreateDynamicMapIcon(FloatX,FloatH,Floatz,31,0x33AA33AA); Používá ale jde to všude ;D Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 Nene taky jsem se divil ale je tam funkce CreateDynamicMapIcon(FloatX,FloatH,Floatz,31,0x33AA33AA); Používá ale jde to všude ;D Tak se podivej jak je napsany CreateDynamicMapIcon Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 Tak se podivej jak je napsany CreateDynamicMapIcon native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0); ;D je to plugin takže nevím xD Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0); ;D je to plugin takže nevím xD Ja myslel jak je to napsane v tom pluginu Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 1. Prosinec, 2013 Share Odesláno: 1. Prosinec, 2013 Ja myslel jak je to napsane v tom pluginu ok pošlu foto ;D http://www.gen.ewolutions.cz/subdom/img/images/17630997394787973161.png a jak je videt nemám žádnou zkušenost s pluginama ;D(Krom Javy) xD Link to comment Share on other sites More sharing options...
Dotaz
H{3}nr{1} 19
Čus,
včera jsem v gamemodu dělal nějaký ikonky, jenže mám problém ...
Vytvořila se ikonka která vypadá jako by na mapě byl hráč ....
Potřebuju tohle: http://wiki.sa-mp.com/wiki/MapIcons
Budu rád za každej help ... ThX
Link to comment
Share on other sites
23 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now