Jump to content
  • 0

Cum sa schimb zona de spawn!


Question

Posted

Salut imi puteti spune si mie cum sa schimb locatia cand un player intra pe svr il da la /aa si as vrea sa il dea il /ls cum fac ca pe unii sa ii dea la aa si pe alti la sf.Adica sa fie diverse zone de spawn??

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

1 answer to this question

Recommended Posts

Posted

Ce e la OnPlayerSpawn cu SetPlayerPos si pui asta:

switch( random(2) )
{
    case 0: SetPlayerPos(playerid, x_aa, y_aa, z_aa);
    case 1: SetPlayerPos(playerid, x_ls, y_ls, z_ls);
}
Poti adauga si mai multe ... 3 spawnuri:
switch( random(3) )
{
    case 0: SetPlayerPos(playerid, x_aa, y_aa, z_aa);
    case 1: SetPlayerPos(playerid, x_ls, y_ls, z_ls);
    case 2: SetPlayerPos(playerid, x_c, y_c, z_c);
}

si tot asa.

Ce e cu x_..., y_... si z_... schimbi cu coordonatele x, y si z. Le afli in joc folosind /save si gasindu-le prin GTA San Andreas User Files\SAMP\savedpositions.txt.

Data viitoare foloseste butonul search.

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.