Mulipal Spawns! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mulipal Spawns! (
/showthread.php?tid=233080)
Mulipal Spawns! -
JamesJ899 - 28.02.2011
Hey guys im creating a new server in which i need different classes such as trucker police army ect!
I want different skins for different teams and different spawns for them each! It would be much apprectiated if you could help me with this!
Thanks JamesJ899!
Re: Mulipal Spawns! -
pawn_ - 28.02.2011
Hi,
These four functions will be useful for you.
Check out the links below:
AddPlayerClass
OnPlayerRequestClass
List of skins
A guide for team making
-
JamesJ899 - 28.02.2011
Thanks buddy i will check them out
Do you kknow anything about spawn points?
Re: Mulipal Spawns! -
pawn_ - 01.03.2011
Yes, would you like an example?
pawn Код:
new Float:MultipleSpawns[][4]
{
{x, y, z, angle},
{x, y, z, angle},
{x, y, z, angle}
};
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(MultipleSpawns));
SetPlayerPos(playerid, MultipleSpawns[rand][0], MultipleSpawns[rand][1], MultipleSpawns[rand][2]);
SetPlayerFacingAngle(playerid, MultipleSpawns[rand][3]);
return 1;
}
Be sure to fill those x, y, z, angle things with your positions, if you don't have any, it's a good idea to /save then look over savedpositions.txt.