Jump to content
  • 0

Help Spawn


onix09

Question

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!

9zZndmN.png
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

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

Stergi ce am zis eu cu new Spawn

miam 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

lasla, incerc si vad eu daca e bine :D

dar mai intai tre sa rezolv o eroare

http://www.sa-mp.ro/forum/index.php/topic,9782.0.html

Edit: a mers ceva dar nu ce vreau, el apare alb uitati si voi

38067390388812634322.png

\

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

9zZndmN.png
Link to comment
Share on other sites

http://wiki.sa-mp.com/wiki/OnPlayerRequestClass

                        +

http://wiki.sa-mp.com/wiki/SetPlayerPos

http://wiki.sa-mp.com/wiki/SetPlayerFacingAngle

http://wiki.sa-mp.com/wiki/SetPlayerCameraPos

http://wiki.sa-mp.com/wiki/SetPlayerCameraLookAt

Link to comment
Share on other sites

Off stuntman...

deci intri in joc te duci unde vrei  si dai /save Nume

apoi te introci cu fata spre skin aceea va fi camera... si dai iarasi /save NumeCamera

bun 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

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

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

eu sincer theboss nu te supara, dar e adevarat de pe wiki se invata, orkm mai ajutat mult :D, 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 :-?

9zZndmN.png
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.