19.12.2015, 19:02
i have this code but team 2 after death spawn in team 1.how to fix it?
Код:
new Float:iRandomSpawns[][] = { {211.5670,1812.2867,21.8594,3.5209}, {247.0072,1860.3899,14.0840,357.8343}, {287.3070,1813.4673,4.7109,2.8478}, {279.6079,1855.2161,8.7649,269.7870} }; new Float:dRandomSpawns[][] = { {-1470.6016, 2615.5891, 58.7755,-90.0000}, {-1481.2003, 2642.5127, 58.7790,0.0000}, {-1513.7363, 2614.4705, 55.8271, 0.0000}, {-1513.7363, 2614.4705, 55.8271, 180.0000} }; if(GetPlayerTeam(playerid) == TEAM_Internationalforces) { new Random = random(sizeof(iRandomSpawns)); SetPlayerPos(playerid, iRandomSpawns[Random][0], iRandomSpawns[Random][1], iRandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, iRandomSpawns[Random][3]); } if(GetPlayerTeam(playerid) == TEAM_Daesh) { new Random = random(sizeof(dRandomSpawns)); SetPlayerPos(playerid, dRandomSpawns[Random][0], dRandomSpawns[Random][1], dRandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, dRandomSpawns[Random][3]); }