Postavljanje znakova na radaru tj. mapi [RIJEÅ ENO]

Započeo GloomY, Februar 15, 2010, 19:33:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Dakle, doveo sam sebe do faze da želim naučiti neke stvari o skriptanju i nešto sam čitao i pretraživao.
Došao sam sada postaviti jedno pitanje koje sam uvjeren da ćete vi to znati.
Dakle, pitanje je vrlo jednostavno. Kako postaviti znakove na radaru tj. mapi?
Mislim na one ikonice na radaru koje označavaju banku, bizzove, vijećnicu, itd.
Dakle, ona crvena, zelena slova "S", i takve sve vrste znakova...
Kako se to postavlja u Godfather skripti, ukoliko mi netko to može pojasniti, bio bi jako zahvalan.
Hvala unaprijed.
Poslednja Izmena: Februar 16, 2010, 19:33:21 POSLE PODNE od GloomYâ„¢


Evo, sada sam to pogledao i nisam mogao vjerovati da dosada to nisam vidio, no dobro.
Skužio sam uglavnom, ali mi još nije jasno onaj prvi dio.

SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0 );


Iza playerid, ovaj broj 12. To označuje, koliko sam razumio, ID igrača kojemu će se to pokazati.
Sada mi nije jasno, zašto se to samo jednom igraču pokazuje. Ne kužim se baš dobro u ovo, pa se nemojte čuditi ako postavim neko glupo pitanje.



Ako se ne varam to ti znaći na kojoj udaljenosti ćeš vidit ikonicu na mapi.




Ovako ide to u LA:RP skripti :
    SetPlayerMapIcon(playerid, 0, 1612.324, -2330.167, 13.5469, 38, COLOR_YELLOW);  // Spawn Point
   SetPlayerMapIcon(playerid, 1, 2048.352, -1900.153, 13.5538, 55, COLOR_YELLOW);  // Driving School
   SetPlayerMapIcon(playerid, 5, 396.2429, -2074.728, 7.835938, 25, COLOR_YELLOW);  // Fishing School
   SetPlayerMapIcon(playerid, 6, 1528.779, -1678.113, 5.890625, 30, COLOR_YELLOW);  // Police Station
   SetPlayerMapIcon(playerid, 7, 1461.695, -1011.915, 26.84375, 52, COLOR_YELLOW);  // Bank
   SetPlayerMapIcon(playerid, 8, 1518.5179,-1452.9224,14.2031, 30, COLOR_YELLOW);  // FBI
   SetPlayerMapIcon(playerid, 9, 1178.03, -1323.41, 14.10, 22, COLOR_YELLOW);  // Hospital
   SetPlayerMapIcon(playerid, 10, 1480.9323,-1767.7324,18.7958, 56, COLOR_YELLOW); // CITY HALL
   SetPlayerMapIcon(playerid, 11, 2410.1682,-1220.7765,25.2978, 49, COLOR_YELLOW); // Pig Pen
   SetPlayerMapIcon(playerid, 12, 2312.9451,-1645.0206,14.8270, 49, COLOR_YELLOW); // Ten Green
   SetPlayerMapIcon(playerid, 13, 1831.4663,-1683.2169,13.2197, 48, COLOR_YELLOW); // Alhambra
   SetPlayerMapIcon(playerid, 14, 1498.4476,-1582.8242,13.5469, 50, COLOR_YELLOW); // Restaurant
   SetPlayerMapIcon(playerid, 15, 2468.4919,-2092.9902,13.5469, 51, COLOR_YELLOW); // Truck Place
   SetPlayerMapIcon(playerid, 16, 2146.3523,-2267.7498,14.2344, 18, COLOR_YELLOW); // Gun Dealer Reg.
   SetPlayerMapIcon(playerid, 17, 1312.4210,-898.5630,39.5781, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 18, 1832.4276,-1838.3896,13.5781, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 19, 1353.6860,-1757.4297,13.5078, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 20, 1038.0298,-1339.9967,13.7361, 17, COLOR_YELLOW); // Jim' sticky ring
   SetPlayerMapIcon(playerid, 21, 2105.4858,-1806.4725,13.5547, 29, COLOR_YELLOW); // Pizza stack
   SetPlayerMapIcon(playerid, 22, 2229.9011,-1721.2582,13.5613, 54, COLOR_YELLOW); // Gym
   SetPlayerMapIcon(playerid, 23, 2244.3423,-1665.5542,15.4766, 45, COLOR_YELLOW); // Binco


Sada se pitam, zašto idu brojevi po redu...
Poslednja Izmena: Februar 15, 2010, 19:53:20 POSLE PODNE od GloomYâ„¢

iYoko

Citat: GloomYâ,,¢ poslato Februar 15, 2010, 19:51:21 POSLE PODNE
Ovako ide to u LA:RP skripti :
    SetPlayerMapIcon(playerid, 0, 1612.324, -2330.167, 13.5469, 38, COLOR_YELLOW);  // Spawn Point
   SetPlayerMapIcon(playerid, 1, 2048.352, -1900.153, 13.5538, 55, COLOR_YELLOW);  // Driving School
   SetPlayerMapIcon(playerid, 5, 396.2429, -2074.728, 7.835938, 25, COLOR_YELLOW);  // Fishing School
   SetPlayerMapIcon(playerid, 6, 1528.779, -1678.113, 5.890625, 30, COLOR_YELLOW);  // Police Station
   SetPlayerMapIcon(playerid, 7, 1461.695, -1011.915, 26.84375, 52, COLOR_YELLOW);  // Bank
   SetPlayerMapIcon(playerid, 8, 1518.5179,-1452.9224,14.2031, 30, COLOR_YELLOW);  // FBI
   SetPlayerMapIcon(playerid, 9, 1178.03, -1323.41, 14.10, 22, COLOR_YELLOW);  // Hospital
   SetPlayerMapIcon(playerid, 10, 1480.9323,-1767.7324,18.7958, 56, COLOR_YELLOW); // CITY HALL
   SetPlayerMapIcon(playerid, 11, 2410.1682,-1220.7765,25.2978, 49, COLOR_YELLOW); // Pig Pen
   SetPlayerMapIcon(playerid, 12, 2312.9451,-1645.0206,14.8270, 49, COLOR_YELLOW); // Ten Green
   SetPlayerMapIcon(playerid, 13, 1831.4663,-1683.2169,13.2197, 48, COLOR_YELLOW); // Alhambra
   SetPlayerMapIcon(playerid, 14, 1498.4476,-1582.8242,13.5469, 50, COLOR_YELLOW); // Restaurant
   SetPlayerMapIcon(playerid, 15, 2468.4919,-2092.9902,13.5469, 51, COLOR_YELLOW); // Truck Place
   SetPlayerMapIcon(playerid, 16, 2146.3523,-2267.7498,14.2344, 18, COLOR_YELLOW); // Gun Dealer Reg.
   SetPlayerMapIcon(playerid, 17, 1312.4210,-898.5630,39.5781, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 18, 1832.4276,-1838.3896,13.5781, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 19, 1353.6860,-1757.4297,13.5078, 52, COLOR_YELLOW); // 24/7
   SetPlayerMapIcon(playerid, 20, 1038.0298,-1339.9967,13.7361, 17, COLOR_YELLOW); // Jim' sticky ring
   SetPlayerMapIcon(playerid, 21, 2105.4858,-1806.4725,13.5547, 29, COLOR_YELLOW); // Pizza stack
   SetPlayerMapIcon(playerid, 22, 2229.9011,-1721.2582,13.5613, 54, COLOR_YELLOW); // Gym
   SetPlayerMapIcon(playerid, 23, 2244.3423,-1665.5542,15.4766, 45, COLOR_YELLOW); // Binco


Sada se pitam, zašto idu brojevi po redu...
Mislim da je to samo redni broj kako bi se poslje brze snalazio...

pa to su ID-ovi od tih ikonica i nebi smjele biti dvije iste pa zato idu po redu da se ne pomjesaju
Vikend je policija nas hvata,
vikend je ode cijela plata,
oko nas stvari ukradene,
sve smo dali na planove i sheme..
||||:=:=:=:=:=:=::=:=:=:=:=:=:=:THE IVEX:=:=:=:=:=:=:=:=:=::=:=:=:=:=:=::=:|||| 


PS: Ne saljite mi nikakve pm jer neodgovaram na njih! Ako trebate nes pitajte ove pr0 skriptere pa neka vam kazu!Hvala !

Shvatio sam sada sve. Dakle, radilo se o tome da svaka ta oznaka mora imati svoj broj, zato je sve bilo različito, jer ukoliko budu isti brojevi, onda će doći do miješanja.
Ovako sam to napravio :
SetPlayerMapIcon(playerid, 24, 2490.3738,-1667.8715,13.3438, 62, COLOR_YELLOW); // Grove
Dok je ovako to izgledalo ingame : http://img718.imageshack.us/img718/1452/samp238.png

Slijedeće što me zanima, da ne radim novu temu, je kako skinuti palicu na spawnu kod svakog igrača. U Godfatheru, se obični igrač uvijek spawna sa palicom i sada me zanima kako maknuti tu palicu, da nema nijedno oružje.
Poslednja Izmena: Februar 15, 2010, 20:18:53 POSLE PODNE od GloomYâ„¢

Mora biti tamo negdje pod onplayerspawn, GivePlayerWeapon za palicu (Valjda nisam siguran).




Pronašao sam, hvala ti puno. Ukoliko bude potrebno još nešto, javit ću vam se, zasada svima hvala.