#include < a_samp >
enum SpawnInfo
{
Float: fX,
Float: fY,
Float: fZ,
szPlaceName[ 50 ]
}
new
Float: RandomSpawn[ ] [ SpawnInfo ] =
{
{0.0, 0.0, 0.0, \"Old Air\"}
};
public OnPlayerSpawn( playerid )
{
new
szFormat[ 100 + 1 ],
fPos = random( sizeof( RandomSpawn ) );
SetPlayerPos( playerid, RandomSpawn[ fPos ] [ fX ], RandomSpawn[ fPos ] [ fY ], RandomSpawn[ fPos ] [ fZ ] );
format( szFormat, sizeof( szFormat ), \"[ SpawnInfo ] A(z) %s nevû helyen spawnoltál.\", RandomSpawn[ fPos ] [ szPlaceName ] );
SendClientMessage( playerid, 0xFF0000AA, szFormat );
return 1;
}