29.01.2012, 22:55
pawn Код:
enum E_SPAWN_DATA
{
Float: E_X,
Float: E_Y,
Float: E_Z,
SKIN_ID
}
static const
g_spawnData[ ] [ E_SPAWN_DATA ]
{
{ 1.0, 2.0, 3.0, 278 }
}
;
new i = random( sizeof( g_spawnData ) );
SetPlayerPos( playerid, g_spawnData[ i ] [ E_X ], g_spawnData[ i ] [ E_Y ], g_spawnData[ i ] [ E_Z ] );
SetPlayerSkin( playerid, g_spawnData[ i ] [ E_SKIN ] );