13.10.2011, 23:34
pawn Код:
if(Team PLayer = Team Cop)
{
if(Get Player Class/Skin == skin 1337)
{
SetPlayerPos(playerid, X,Y,Z);
}
}
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.