29.11.2011, 19:39
You could do that, yes. A switch would probably be better though.
pawn Код:
switch(GetPVarInt(playerid, "team"))
{
case TEAM_X:
{
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, a);
SetPlayerInterior(playerid, int);
}
case TEAM_Y:
{
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, a);
SetPlayerInterior(playerid, int);
}
case TEAM_Z:
{
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, a);
SetPlayerInterior(playerid, int);
}
}