06.03.2014, 17:10
topo do GM
OnPlayerSpawn
Ai se os boyzinhos forem a primeira gang, vai spawnar em diferentes locais
PHP код:
new Float:SpawnBoyzinho[5][3] =
{
{1807.0757,-1690.0712,13.5457},
{1379.6189,-1659.0195,13.5457},
{1409.3663,-1306.9072,9.2937},
{1340.3314,-1775.7716,13.5114},
{2426.0017,-1230.0343,24.9293}
};
PHP код:
if(GetPlayerTeam(playerid) == 1)
(
new rand = random(sizeof(SpawnBoyzinho));
SetPlayerPos(playerid, SpawnBoyzinho[rand][0], SpawnBoyzinho[rand][1], SpawnBoyzinho[rand][2]);
}