Jump to content

Recommended Posts

Posted

Deci nu stiu nici eu prea bine dar incerc sa va spun..

pentru inceput vom face asa

[pawn]new Float:gRandomPlayerSpawn[4][0] = {

{},

{ },

{},

{}

};//intre aceste acolade pui locurile de spawn aici pui mai multe coordonate pentru a avea mai multe spawnuri[/pawn]

Dupa mai facem un new adica asa

[pawn]new iSpawnSet[MAX_PLAYERS];[/pawn]

Dupa vom face un forward

[pawn]forward SetPlayerSpawn(playerid);[/pawn]

In Loc de SetPlayerSpawn puteti inlocui cu ce vreti voi

Ok acum ca am facut forwardu

vom face ceva degenu asta

[pawn]public SetPlayerSpawn(playerid)

{

    if (iSpawnSet[playerid] == 0)

    {

new rand = random(sizeof(gRandomPlayerSpawn));

SetPlayerPos(playerid, gRandomPlayerSpawn[rand][0], gRandomPlayerSpawn[rand][1], gRandomPlayerSpawn[rand][2]); // Car Sumo Others

}

return 1;

}[/pawn]

new rand = random (zizeoff(gRandomPlayerSpawn)); arata ca indeplineste functia de mai sus

[pawn] new Float:gRandomPlayerSpawn[/pawn]

adica asta

Ok acum ca sa avem mai multe spawnuri la un teleport vom pune asta

[pawn]SetPlayerSpawn(playerid);[/pawn] la un teleport

Sper ca vam ajutat

Stiu ca nu e tocmai un toturial dar nici eu nu stiu foarte bine cum se face si am incercat sa va explic cum stiu eu mai bine

Massari e curva mea

Posted

:.." post="115045" timestamp="1331359212"]

La inceput asa e ;) Te vei invata, usor usor, ca si mine :)

:)) ce te mai lauzi....glumeam...ms pt nota si comuri

Massari e curva mea

  • 5 weeks later...
Posted

RuNiNg" post="115886" timestamp="1331791153"]

mie nu-mi merge ...

oricum BV!

Am uitat sa mai adaug cv trebuia sa puneti si

[pawn]new iSpawnSet[MAX_PLAYERS]; [/pawn]

si o sa va mearga

Massari e curva mea

Posted

MaTriX" post="120336" timestamp="1334583596"]

Dar eu nu am in gm [pawn]public SetPlayerSpawn[/pawn]

Lol pai..trebuie sa faci un forward

citeste mai sus cu atentie

Massari e curva mea

Posted

Nu e copiat,.am invatat si am facut tut

chiar daca ar fi copiat nu am mai vazut tut de acest gen aici..in fine tutu e facut de mn da crezi ce vrei

Massari e curva mea

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.