(2020-10-15, 12:09 PM)Worm Wrote:(2020-10-14, 12:52 PM)DaZzY Wrote:
I have tried to do this but work only when military die respawn at this positon still doesn't work :(
So according to what you are saying, It works only after the player dies.
Also by "?military ", you mean the team, or do you mean the player?
This is my code :?
Quote:switch (g_Team[g_Player[playerid][playerClass]][teamId]) {?
iRandom = random(sizeof(g_SpawnJustice));
SetPlayerPos(playerid, g_SpawnJustice[iRandom][0], g_SpawnJustice[iRandom][1], g_SpawnJustice[iRandom][2]);
SetPlayerFacingAngle(playerid, g_SpawnJustice[iRandom][3]);
if(GetPlayerSkin(playerid) == 287)
? {
? SetPlayerPos(playerid, -1303.9714,492.5781,11.1953);
? }
i have many "case" i show this "case" of this team i have add?if(GetPlayerSkin(playerid) == 287) (military skin ) and position special to military?
When i choose player with military skin and i click on "SPAWN" on request class the military player skin spawn same position with other player of skin cops and swat But when player die with skin 287 the player spawn at position of military skin
Quote:Add delay for 1 - 2 sec after OnPlayerSpawn to RE-Set player pos by skin or use SetPlayerSpawnInfo when player selects team.?
This maybe a good idea the timer but SetPlayerSpawnInfo doesn't work also :(
So the problem i have a same team (justice) but i want a differents position for skin ...