Mulipal Spawns!
#1

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!
Reply
#2

Hi,

These four functions will be useful for you.

Check out the links below:

AddPlayerClass
OnPlayerRequestClass
List of skins
A guide for team making
Reply
#3

Thanks buddy i will check them out

Do you kknow anything about spawn points?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)