[Ajuda] Ao Play Morrer!
#7

Topo do GM
pawn Код:
New Morto[MAX_PLAYERS];
new Float:RandomSpawn[][4] =
{
    // Positions, (X, Y, Z and Facing Angle)
    {-2796.9854, 1224.8180, 20.5429, 192.0335},
    {-2454.2170, 503.8759, 30.0790, 267.2932},
    {-2669.7322, -6.0874, 6.1328, 89.8853}
}
OnPlayerDeath
pawn Код:
Morto[playerid] = 1;
OnPlayerSpawn

pawn Код:
if(Morto[playerid] == 1)
{
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
Morto[playerid] = 0;
}
Creditos a Wiki Samp
https://sampwiki.blast.hk/wiki/Random
Reply


Messages In This Thread
[Ajuda] Ao Play Morrer! - by L.S.T - 24.02.2011, 15:07
Re: [Ajuda] Ao Play Morrer! - by leandro123456 - 24.02.2011, 15:11
Re: [Ajuda] Ao Play Morrer! - by deregudegu - 24.02.2011, 15:18
Re: [Ajuda] Ao Play Morrer! - by L.S.T - 24.02.2011, 15:25
Re: [Ajuda] Ao Play Morrer! - by L.S.T - 24.02.2011, 15:45
Re: [Ajuda] Ao Play Morrer! - by deregudegu - 24.02.2011, 15:45
Re: [Ajuda] Ao Play Morrer! - by leandro123456 - 24.02.2011, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)