spawn locations???(plz help) -
denbo1 - 20.07.2009
i need help makeing spawn locations for my server...
if you can show me how i will me very happy
i got no idea how to and nothing helps im a new scripter...
but this is not my cup of tea
plz do not read and not help i got 1 week till the server opens
[sorry for bad spelling, i dont like grama...]
Re: sawn locations???(plz help) -
James_Alex - 20.07.2009
juse use
"AddPlayerClass" this will add a pad who spawns in a place that ypu choose
look here
https://sampwiki.blast.hk/wiki/AddPlayerClass for more infos
Re: sawn locations???(plz help) -
Geekzor - 20.07.2009
if i understand right you need spawn locations for palyer spawns right ?
soo place this:
atm this are my spawns
Код:
new Float:gRandomPlayerSpawns[25][3] = {
{2628.8330,2348.0713,10.8203}, // this are coordinates of random spawns
{2861.6289,2430.3257,11.0690},
{2810.8657,1987.2445,10.8203},
{2671.0632,2011.1609,10.8281},
{2624.4458,1824.3765,11.0234},
{2495.6506,1643.8921,14.2656},
{2482.3540,1526.6769,11.4562},
{2614.2900,1385.7592,10.8203},
{2535.3647,997.6971,14.2725},
{2485.9419,919.0803,10.8203},
{1898.0858,684.8121,14.2752},
{1549.4457,1017.5471,10.8203},
{1876.0280,2236.2859,11.1250},
{1909.2520,2350.3167,10.9799},
{2118.0330,2416.6912,49.5234},
{2126.8560,2360.9534,10.8203},
{1417.5988,2235.8542,11.0234},
{1044.5269,1013.0023,11.0000},
{-70.1027,1211.2644,22.4403},
{14.1694,1189.5394,19.3101},
{-248.7177,2591.8750,63.5703},
{-844.5303,2744.8708,45.8474},
{-1483.3262,2646.6748,58.7281},
{-746.7950,1589.8105,26.9609},
{-688.0734,946.6996,13.0313}
};
or you can make spawn for each class...
with adding
''AddPlayerClass''
i hope i helped ...
Re: sawn locations???(plz help) -
denbo1 - 20.07.2009
thank for all the help
i can open my server soon
wher do i put the code u sent me
thanks :]
Re: sawn locations???(plz help) -
wilcock33 - 20.07.2009
Quote:
Originally Posted by Geekzor
if i understand right you need spawn locations for palyer spawns right ?
soo place this:
atm this are my spawns
Код:
new Float:gRandomPlayerSpawns[25][3] = {
{2628.8330,2348.0713,10.8203}, // this are coordinates of random spawns
{2861.6289,2430.3257,11.0690},
{2810.8657,1987.2445,10.8203},
{2671.0632,2011.1609,10.8281},
{2624.4458,1824.3765,11.0234},
{2495.6506,1643.8921,14.2656},
{2482.3540,1526.6769,11.4562},
{2614.2900,1385.7592,10.8203},
{2535.3647,997.6971,14.2725},
{2485.9419,919.0803,10.8203},
{1898.0858,684.8121,14.2752},
{1549.4457,1017.5471,10.8203},
{1876.0280,2236.2859,11.1250},
{1909.2520,2350.3167,10.9799},
{2118.0330,2416.6912,49.5234},
{2126.8560,2360.9534,10.8203},
{1417.5988,2235.8542,11.0234},
{1044.5269,1013.0023,11.0000},
{-70.1027,1211.2644,22.4403},
{14.1694,1189.5394,19.3101},
{-248.7177,2591.8750,63.5703},
{-844.5303,2744.8708,45.8474},
{-1483.3262,2646.6748,58.7281},
{-746.7950,1589.8105,26.9609},
{-688.0734,946.6996,13.0313}
};
or you can make spawn for each class...
with adding
''AddPlayerClass''
i hope i helped ...
|
hello, my brother made this topic and he isnt the only one who needs help, im making the locations!
i have put the obove in but i get this when trying to compile:
C:\Users\Chris\Desktop\Server\gamemodes\untitled.p wn(317) : warning 204: symbol is assigned a value that is never used: "gRandomPlayerSpawns"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
any suggestions?
Re: spawn locations???(plz help) -
James_Alex - 20.07.2009
cuz you mudt use it !!
Re: spawn locations???(plz help) -
wilcock33 - 20.07.2009
wtf? i dont understabd

sorry if i sound stuipid
Re: spawn locations???(plz help) -
denbo1 - 20.07.2009
ok all this help but how do i add this my bro (wilcock33)
is makeing the gamemode and i make other things(the filterscripts)
and he dose not understand mudt...
plz can sumone help me...
Re: spawn locations???(plz help) -
Geekzor - 20.07.2009
try to put this in your gamemode
Код:
public SetPlayerRandomSpawn(playerid)
{
new rand;
rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]);
return 1;
}
and this on top of your game mode
Код:
forward SetPlayerRandomSpawn(playerid);
i think this must be all

i learn the Random Spawns from Lvdm gamemode

its very helpful ^^
Re: spawn locations???(plz help) -
denbo1 - 20.07.2009
wait thats all lvdm thats all i needed to look at

get gamemode finnished
finish filter scripts
thanks man