30.08.2015, 01:19
Espero ter ajudado.
PHP код:
new Float:RealPosition[MAX_PLAYERS][3];
PHP код:
public OnPlayerSpawn(playerid)
{
if(SpwRnd[playerid] == true)
{
new Random = random(sizeof(SpwRnd));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
RealPosition[playerid][0] = RandomSpawns[Random][0];
RealPosition[playerid][1] = RandomSpawns[Random][1];
RealPosition[playerid][2] = RandomSpawns[Random][2];
SpwRnd[playerid] = false;
}
return 1;
}
PHP код:
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);//Seta a Skin do player
SetPlayerPos(playerid, RealPosition[playerid][0], RealPosition[playerid][0], RealPosition[playerid][0]);
SetPlayerAttachedObject(playerid, 0, ObjetoMochila_Pouch, 1, 0.241894, -0.160918, 0.181463, 0, 90, 0, 1, 1, 1);