14.10.2011, 05:51
Quote:
Use it like this.
Keep the CopLS*** variables. But instead of if(CopLS25 you need to get the player skin. if(GetPlayerSkin(playerid) == CopLS25 That way you only have 1 position that fits the description, instead of all. If they all match you get the last defined position. If none of them match, you spawn at the location of the class. If you have the same position defined in the classes you can leave all this extra code away. Just place the coordinates in the classes, and spawn after picking one. You will automatically spawn at the class position. But if you use those positions for class selection or something, you need to use a different if. |