04.03.2014, 22:59
Vlws mesmo ! Com a resposta de voceis , basei esse codigo que ta funcionando de boa !! vlws !
em public OnPlayerRequestClass(playerid, classid)
em
public OnPlayerSpawn(playerid)
Era So algumas duvidas ! valeu ai
Quote:
new Float:RandomSpawns[][] = { {1958.3783, 1343.1572, 15.3746, 269.1425}, {2279.9985, -615.3870, 134.5559, 228.3854}, {2279.9985, -615.3870, 134.5559, 228.3854}, {2553.1404, -952.1654, 82.6709, 106.1843}, {2432.2146, -2423.9443, 13.6276, 230.5788}, {1477.2146, -2027.1406, 31.9044, 230.5788}, {698.2166, -1461.7200, 8.9766, 8.7601}, {-15.4324, -2503.9709, 36.6555, 102.1343}, {-32.4647, -1149.8997, 1.7430, 102.7609}, {-2203.6240 ,-2387.5686, 30.8311, 237.1823}, {-2095.1865 ,-2256.5686, 36.1356, 237.1823}, {-2098.9272 ,-2261.9961, 30.6250, 138.7222}, {-2302.7112 ,-1630.5436, 483.7253, 211.4162}, {-2499.9785 ,-612.6174, 132.5625, 262.4666}, {-2122.1563 ,269.3272, 35.6318, 262.4666}, {-2474.0337 ,2520.6338, 17.7863, 279.4102}, {-1532.3290, 2626.8054, 55.8359, 3.071,0}, {-544.0884, 2591.6729, 53.5156, 280.3736}, {-174.0884, 2676.4385, 62.6836, 280.3736}, {1290.6293, 1653.7976, 10.8203, 38.1646}, {1757.8960, 2766.7656, 10.8359, 200.4943} }; |
Quote:
{ SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } |
public OnPlayerSpawn(playerid)
Quote:
{ new Random = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]); return 1; } |