Can someone help me with creating a GM > Pawno doesnt work. -
davelord - 25.03.2011
Hey, okay I will just tell you what I wanted to make, it's very simple, but my pawno crashes everytime I open it.
I want people to spawn randomly at the three points below, they should be able to pick skins, but that can I do myself probaly. It's just this that I want people to spawn randomly, when they die, spawn, ect:
AddPlayerClass(0,2216.3396,-1150.5111,1025.7969,270.0000,0,0,0,0,0,0); // JEFFMOTEL ONE
AddPlayerClass(0,2240.7783,-1190.3444,1033.7969,356.1440,0,0,0,0,0,0); // JEFFMOTEL TWO
AddPlayerClass(0,2203.8938,-1139.8920,1031.7969,88.2415,0,0,0,0,0,0); // JEFFMOTEL THREE
Re: Can someone help me with creating a GM > Pawno doesnt work. -
[ProX]BlueFire - 25.03.2011
u cant make the same skin with different teams....
and use this(put this on the top of ur script)
Код:
new Float:RandomSpawn[][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{2216.3396,-1150.5111,1025.7969},
{2240.7783,-1190.3444,1033.7969},
{2203.8938,-1139.8920,1031.7969}
};
and this under onplayerspawn
Код:
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
return 1;
}