Szerző Téma: [help] Randomspawn ,Dialogmenu  (Megtekintve 946 alkalommal)

[help] Randomspawn ,Dialogmenu
« Dátum: 2010. Március 13. - 19:03:54 »
0 Show voters
hali
1,megszeretném szüntetni a randomspawn-t lvdm modba, tehát csak 1 helyen vagy 1-2 helyen akarom hogy kezdjek.
2, valaki bemásolná a tutorialt a dialogmenühöz?
eloreisköszii :D

[help] Randomspawn ,Dialogmenu
« Válasz #1 Dátum: 2010. Március 13. - 20:01:47 »
0 Show voters
itt a menü TuT
SA-MP Fórum > SA-MP > Leírások/Útmutatók > [TUT]Menü készítés
és ha azt akarod hogy csak egy két helyen indulj, akkor vedd ki az Addplayerclassokat (ongamemodeinit alatt vannak) ....és egyyet kettot hagyj meg xD
« Utoljára szerkesztve: 2010. Március 13. - 20:04:33 írta DaNeEe9 »

GroX

  • Vendég
[help] Randomspawn ,Dialogmenu
« Válasz #2 Dátum: 2010. Március 13. - 20:32:12 »
0 Show voters
Idézetet írta: DaNeEe9 date=1268506907\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"965\" data-ipsquote-contentclass=\"forums_Topic
SA-MP Fórum > SA-MP > Leírások/Útmutatók > [TUT]Menü készítés
 
O Dialogot kért nem menüt. Katt ide
 
és ha azt akarod hogy csak egy két helyen indulj, akkor vedd ki az Addplayerclassokat (ongamemodeinit alatt vannak) ....és egyyet kettot hagyj meg xD[/quote]
Ez megint egy baromság.
Kitörlöd ezt:
 
new Float:gRandomPlayerSpawns[23][3] = {
{1958.3783,1343.1572,15.3746},
{2199.6531,1393.3678,10.8203},
{2483.5977,1222.0825,10.8203},
{2637.2712,1129.2743,11.1797},
{2000.0106,1521.1111,17.0625},
{2024.8190,1917.9425,12.3386},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125},
//{-857.0551,1536.6832,22.5870},   Out of Town Spawns
//{817.3494,856.5039,12.7891},
//{116.9315,1110.1823,13.6094},
//{-18.8529,1176.0159,19.5634},
//{-315.0575,1774.0636,43.6406},
{1705.2347,1025.6808,10.8203}
};
new Float:gCopPlayerSpawns[2][3] = {
{2297.1064,2452.0115,10.8203},
{2297.0452,2468.6743,10.8203}
};

 
Aztán ezeket:
 
forward SetPlayerRandomSpawn(playerid);

 
OnPlayerSpawn alól ezt:
 
SetPlayerRandomSpawn(playerid);

 

public SetPlayerRandomSpawn(playerid)
{
if (iSpawnSet[playerid] == 1)
{
new rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
    }
    else if (iSpawnSet[playerid] == 0)
    {
new rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
}
return 1;
}

 
És ezt.
Aztán az AddPlayerClass függvények paramétereit módosítod arra ahova akarod h spawnoljon.
Vagy OnPlayerSpawn-nál használod a SetPlayerPos függvényt, és az oda teszi.

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
[help] Randomspawn ,Dialogmenu
« Válasz #3 Dátum: 2010. Március 13. - 20:54:16 »
0 Show voters
GroX, ezt nézd át még1x.

GroX

  • Vendég
[help] Randomspawn ,Dialogmenu
« Válasz #4 Dátum: 2010. Március 13. - 20:57:17 »
0 Show voters
Mért is?
Ha arra gondolsz mindent leírtam amit ki kell törölni max ezt nem:
 
/*public GrubModeReset()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
   SetPlayerScore(i, PocketMoney);
   SetPlayerRandomSpawn(i, classid);
}
}
}*/

 
De ez commentbe van.
Ha másra gondoltál volna...

[help] Randomspawn ,Dialogmenu
« Válasz #5 Dátum: 2010. Március 13. - 20:59:35 »
0 Show voters
köszönöm :)
zárok :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal