Changing player spawn locations.
#1

http://forum.sa-mp.com/showthread.ph...14#post2145714
Reply
#2

you mean random spawns use this tut:
https://sampforum.blast.hk/showthread.php?tid=162488
Reply
#3

Yeah i guess,

But i just want to edit the class spawns for PPC_Trucking.
Instead of spawning at a premade one which came with the gamemode i want to change it to a different area.
Reply
#4

here u go a simple one
pawn Код:
new Float:RandomSpawns[][] =
{
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
};
pawn Код:
//underonplayerspawn
if(GetPlayerTeam(playerid) == 1)
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
//more team here and so on!
i hope that helps
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)