AddPlayerClass - switchting random!
#9

PHP код:
public OnPlayerSpawn(playerid)
{
new 
playerName[MAX_PLAYER_NAME], RandomSpawn random(8);
GetPlayerName(playeridplayerNameMAX_PLAYER_NAME);
if (
RandomSpawn == 0)
{
SetPlayerPos(playerid1699.657836, -2398.54394513.554687);
SetPlayerFacingAngle(playerid207.884277);//lsair
}
if (
RandomSpawn == 1)
{
SetPlayerPos(playerid486.0672602607.68603562.243885);
SetPlayerFacingAngle(playerid124.997482);//aa
}
if (
RandomSpawn == 2)
{
SetPlayerPos(playerid, -2323.567626, -1615.611694483.717834);
SetPlayerFacingAngle(playerid233.441726);//chill
}
if (
RandomSpawn == 3)
{
SetPlayerPos(playerid, -1255.36181629.31097714.148437);
SetPlayerFacingAngle(playerid141.581024);//sfair
}
if (
RandomSpawn == 4)
{
SetPlayerPos(playerid1699.657836, -2398.54394513.554687);
SetPlayerFacingAngle(playerid207.884277);//lsair
}
if (
RandomSpawn == 5)
{
SetPlayerPos(playerid486.0672602607.68603562.243885);
SetPlayerFacingAngle(playerid124.997482);//aa
}
if (
RandomSpawn == 6)
{
SetPlayerPos(playerid, -2323.567626, -1615.611694483.717834);
SetPlayerFacingAngle(playerid233.441726);//chill
}
if (
RandomSpawn == 7)
{
SetPlayerPos(playerid, -1255.36181629.31097714.148437);
SetPlayerFacingAngle(playerid141.581024);//sfair
}
return 
1;

Rep+++
Reply


Messages In This Thread
AddPlayerClass - switchting random! - by Twisted_Insane - 23.03.2012, 12:02
Re: AddPlayerClass - switchting random! - by Twisted_Insane - 23.03.2012, 12:56
Re: AddPlayerClass - switchting random! - by Unte99 - 23.03.2012, 13:05
Re: AddPlayerClass - switchting random! - by Twisted_Insane - 23.03.2012, 13:10
Re: AddPlayerClass - switchting random! - by Twisted_Insane - 23.03.2012, 14:40
Re: AddPlayerClass - switchting random! - by antonio112 - 23.03.2012, 14:46
Re: AddPlayerClass - switchting random! - by Twisted_Insane - 23.03.2012, 21:41
Re: AddPlayerClass - switchting random! - by antonio112 - 23.03.2012, 21:53
Re: AddPlayerClass - switchting random! - by Aloushi - 24.03.2012, 10:10
Re: AddPlayerClass - switchting random! - by [ABK]Antonio - 24.03.2012, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)