Spawn Set
#1

pawn Код:
new Float:gRandomPlayerSpawns[7][4] = {
{1579.8978,1255.8693,10.8125,52.7742}, //PILOT SPAWN
{1597.4163,1363.8469,10.8502,96.0648}, //PILOT SPAWN
{1579.2930,1391.1327,10.8479,37.6656}, //PILOT SPAWN
{1577.0707,1497.6550,10.8295,45.2305}, //PILOT SPAWN
{1582.6981,1521.4662,10.8338,355.2722}, //PILOT SPAWN
{1649.4280,1535.5350,10.7807,6.8734}, //PILOT SPAWN
{1535.8630,1849.7448,10.8203,140.5323} //PILOT SPAWN
};
Those are my spawns for pilots. But for some reason the facing angle that is there dosn't load :/ It just loads the position.
Reply
#2

What do you mean with "loads"?
Did you even use SetPlayerFacingAngle when putting him to the random coordinate? Show us your code.
Reply
#3

pawn Код:
new rand = random(sizeof(gRandomPlayerSpawns));
        SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]);
do i need to add something like this??
pawn Код:
new rand = random(sizeof(gRandomPlayerSpawns));
        SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2], gRandomPlayerSpawns[rand][3]);
Reply
#4

pawn Код:
new rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]);
SetPlayerFacingAngle(playerid, gRandomPlayerSpawns[rand][3]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)