25.10.2014, 08:36
I got random spawn it works perfectly but i need the police NOT to random spawn.
You need code? tell me
You need code? tell me
new Float:RandomSpawns[][] =
{
{425.5645,-1778.4537,5.5469,357.3496},
{790.4620,-1629.5061,13.3828,267.7632},
{1143.0552,-1388.1757,13.8137,178.0773},
{1671.9475,-1585.7109,13.5469,178.9575},
{1408.9834,-1725.4763,13.5391,182.0253},
{1335.8291,-1312.0231,13.5469,270.9686},
{790.4620,-1629.5061,13.3828,267.7632},
{2317.6921,-1665.0355,14.2129,0.7005}
};
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
new Random = random(sizeof(RandomSpawns));
if(PlayerInfo][playerid][pFaction] != facidhere)
{
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
Well either use the cops faction id or as somebody already said above use the skin id.
pawn Код:
|