Posts: 166
Threads: 18
Joined: Mar 2012
Reputation:
0
Manda seu OnPlayerSpawn inteiro
Posts: 46
Threads: 19
Joined: Sep 2012
Reputation:
0
/////////////////////////////////////////////////
public OnPlayerSpawn(playerid)
{
if( GetPVarInt( playerid, #Death) == 1 ) {
new rand = random( sizeof randomSpawns );
return SetPlayerPos( playerid , randomSpawns[ rand ][ 0 ] , randomSpawns[ rand ][ 1 ] , randomSpawns[ rand ][ 2 ] ), 1;
}
else
return 1;
/////////////////////////////////////////////////
Posts: 46
Threads: 19
Joined: Sep 2012
Reputation:
0
Entгo, esse gamemode define spawns variбveis. Tem como eu deixar sу um? Serб que isso facilita o OnPlayerSpawn?
/// Cуdigo do randomSpawns ///
static const Float:randomSpawns[ 9 ][ 3 ] = { //LVDM
{ 1958.3783 , 1343.1572 , 15.3746 } , {2199.6531 , 1393.3678 , 10.8203 } , { 2483.5977 , 1222.0825 , 10.8203 } ,
{ 1958.3783 , 1343.1572 , 15.3746 } , {2199.6531 , 1393.3678 , 10.8203 } , { 2483.5977 , 1222.0825 , 10.8203 } ,
{ 1958.3783 , 1343.1572 , 15.3746 } , {2199.6531 , 1393.3678 , 10.8203 } , { 2483.5977 , 1222.0825 , 10.8203 } }
;
/// Fim do cуdigo ///