onix09 Posted March 5, 2011 Report Share Posted March 5, 2011 R3 all, am bagat in gm la ongamemodeint, AddPlayerClass(0...etc, dar cand intru pe server nu imi pare dekat albastru(aer) si butoanele si cand sau pe butonul spawn functioneaza....dar cum fac sa nu apara aer ci un skin intr-un lok? help me! Link to comment Share on other sites More sharing options...
BlueSkiLLz Posted March 5, 2011 Report Share Posted March 5, 2011 era o smekerie intr-un loc...SPAWNPOINTS ceva in sensul asta..... nu stiu daca este asta dar asta e//===SPAWNPOINTS==// daca ai 2 spawner pui in loc de 5 pui 2 new Float:numeaici[ 5 ][ 4 ] = { {1782.4652, -2125.8149, 14.0679, 2.1458}, {1802.0015, -2099.5906, 14.0210, 178.8617}, {1733.7253, -2098.3542, 14.0366, 179.5071}, {1674.3099, -2122.3008, 14.1460, 309.0879}, {1734.5999, -2129.7507, 14.0210, 359.1053} };parca asa era Link to comment Share on other sites More sharing options...
onix09 Posted March 5, 2011 Author Report Share Posted March 5, 2011 C:\Documents and Settings\SonyK\Desktop\BDF [ Geo ]\gamemodes\BDF.pwn(142) : warning 203: symbol is never used: "Spawn"si tot lafel, nu imi arata nik kn sa imi aleg skinul :( Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted March 5, 2011 Report Share Posted March 5, 2011 Stergi ce am zis eu cu new Spawnmiam amintit...facem ceva de genu new Float:RandomSpawn[][4] =//4 reprezinta Positile 4 parametri folositi in random spawn adik x,y,z si facing angle iar aici intre { } adaugi unde vrei sa te spawneze { {-2796.9854, 1224.8180, 20.5429, 192.0335}, {-2454.2170, 503.8759, 30.0790, 267.2932}, {-2669.7322, -6.0874, 6.1328, 89.8853} }; iar la OnPlayerSPawn new rand = random(sizeof(RandomSpawn)); // SetPlayerPos la randosm spawn cele trei poziti aici sau aduagat trei pentru ca sunt doar trei locuri dar tu adaugi mai mult adik ,RandomSPawn[rand][3] si tot asa SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]); // SetPlayerFacingAngle facing angle catre spawn SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]); New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
onix09 Posted March 5, 2011 Author Report Share Posted March 5, 2011 C:\Documents and Settings\SonyK\Desktop\BDF [ Geo ]\gamemodes\BDF.pwn(20) : error 021: symbol already defined: "Spawn" Link to comment Share on other sites More sharing options...
IstuntmanI Posted March 5, 2011 Report Share Posted March 5, 2011 Lucian si TheBoss, nu va mai bagati daca nu stiti.La OnPlayerSpawn adauga SetPlayerInterior(playerid, 0); si daca tot nu merge vezi daca sunt bune coordonatele. Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted March 5, 2011 Report Share Posted March 5, 2011 aaa asta vroia ?))lol adik mam chinuit degeaba )sa imi amintesc cum sa fak randosm spawn?))lolmda nam inteles prea bine ce vroia..) New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
onix09 Posted March 5, 2011 Author Report Share Posted March 5, 2011 lasla, incerc si vad eu daca e bine dar mai intai tre sa rezolv o eroarehttp://www.sa-mp.ro/forum/index.php/topic,9782.0.htmlEdit: a mers ceva dar nu ce vreau, el apare alb uitati si voi\eu vreau sa iasa ceva de genul, sa imi apara o pozitie cu un player :|[img width=500 height=312]http://img.b-zone.ro/images/65366434748475696568.png Link to comment Share on other sites More sharing options...
IstuntmanI Posted March 5, 2011 Report Share Posted March 5, 2011 http://wiki.sa-mp.com/wiki/OnPlayerRequestClass +http://wiki.sa-mp.com/wiki/SetPlayerPoshttp://wiki.sa-mp.com/wiki/SetPlayerFacingAnglehttp://wiki.sa-mp.com/wiki/SetPlayerCameraPoshttp://wiki.sa-mp.com/wiki/SetPlayerCameraLookAt Link to comment Share on other sites More sharing options...
onix09 Posted March 5, 2011 Author Report Share Posted March 5, 2011 ouch, iarasi callbakuri ( nu ma pricep la ele X_X Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted March 5, 2011 Report Share Posted March 5, 2011 Off stuntman...deci intri in joc te duci unde vrei si dai /save Numeapoi te introci cu fata spre skin aceea va fi camera... si dai iarasi /save NumeCamerabun le gasesti depidne de versiune...daka este 0.3a Unde ai tu san adreeas/savepositions //aici AddPlayerClas(playerid,x,y,z...)//de aici copiezi doar x,y,z aici o sa gasesti asa AddPlayerClas(...) Nume Camera ce ne intereseaza pe noi este doar x,y,z aflat dupa id skin adik idskin,x,y,z... ce ne intereseaza de aici este doar x,y,z daka este 0.3c respectiv 0.3b Gta san andreeas User FIles/Samp/SavedPosition si aici e cum am zis mai sus bun...deci ce am zis mai sus e valabil si aici.. iar akum facem la OnPlayerRequestClas public public OnPlayerRequestClass(playerid,classid) { SetPlayerPos(playerid,x,y,z) x ,y,z inclouiesti cu positia de la skin nu camera SetPlayerCameraPos(playerid,x,yz) pozitia de la la camera SetPlayerCameraLookAt(playerid,x,y,z) aici iarasi copy x,y,z de la SetPLAYERpos aflat mai sus... SetPlayerFacingAngle(playerid,angle)//angle de la skin nu camera //si pentru acel mesaj pe ecran adaugi asta GameTextForPlayer(style,"message here",3000); } New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
IstuntmanI Posted March 5, 2011 Report Share Posted March 5, 2011 TheBoss" post="58871" timestamp="1299356172"]Off stuntman...Daca as fi stat sa-i explic toate alea dura ceva, asa ca mai bine i-am dat link de la wiki si gata ... cautasem si un OnPlayerRequestClass maker, dar nu-l gasisem ... uite-l acuma: http://forum.sa-mp.com/showthread.php?t=140360 . Cu FS-ul asta e cel mai simplu sa creezi OnPlayerRequestClass-uri. Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted March 5, 2011 Report Share Posted March 5, 2011 stuntman-=!!" post="58872" timestamp="1299356971"]Daca as fi stat sa-i explic toate alea dura ceva, asa ca mai bine i-am dat link de la wiki si gata ... cautasem si un OnPlayerRequestClass maker, dar nu-l gasisem ... uite-l acuma: http://forum.sa-mp.com/showthread.php?t=140360 . Cu FS-ul asta e cel mai simplu sa creezi OnPlayerRequestClass-uri.stiu ma dar nu poti sa inveti chesti numai din wiki......mai ai nevoie si de ajutor orkum bine ca lai dat aku o sal folosesc si eu ms New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
onix09 Posted March 6, 2011 Author Report Share Posted March 6, 2011 eu sincer theboss nu te supara, dar e adevarat de pe wiki se invata, orkm mai ajutat mult , dar cred k voi folosi acel FS daca nu merge fac ce ai zis tu ON: Eu vreau sa fac red team & blue team cum fac cu 2 :-? Link to comment Share on other sites More sharing options...
[RSD]TheBoss Posted March 6, 2011 Report Share Posted March 6, 2011 stai asa fak un fs cu 2 echipe si daka merge iti cum sa faci ;) New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez... Link to comment Share on other sites More sharing options...
Question
onix09
R3 all, am bagat in gm la ongamemodeint, AddPlayerClass(0...etc, dar cand intru pe server nu imi pare dekat albastru(aer) si butoanele si cand sau pe butonul spawn functioneaza....dar cum fac sa nu apara aer ci un skin intr-un lok? help me!
Link to comment
Share on other sites
14 answers to this question
Recommended Posts