05.11.2018, 18:46
Hello Guys, i have Gamemode wich is not an England mode, so when i am at faction after death i am spawning at hospital , how to disable this Function Please? i think that posible, i will +re you if you help me some .
if(PlayerInfo[playerid][pMember] == f/*(f is the id of the player's faction)*/) { SetPlayerPosition(playerid, x, y, z); } // Where first variable( PlayerInfo[playerid][pMember] ) is the faction variable for player(you need to replace this with your gamemode variables) and SetPlayerPosition(playerid, x, y, z) is the new spawn position(also you need to replace them by your coordinates).
Try adding at the end on OnPlayerSpawn(playerid) public function this code:
Code:
if(PlayerInfo[playerid][pMember] == f/*(f is the id of the player's faction)*/) { SetPlayerPosition(playerid, x, y, z); } // Where first variable( PlayerInfo[playerid][pMember] ) is the faction variable for player(you need to replace this with your gamemode variables) and SetPlayerPosition(playerid, x, y, z) is the new spawn position(also you need to replace them by your coordinates). |
if(P[playerid][Member] != 0){
SetSpawnInfo(...); // Spawn him elsewhere
}
else SetSpawnInfo(...); // Spawn him at hospitals