08.01.2014, 00:52
pawn Код:
#include <a_samp>
#define LOS_SANTOS (1)
#define SAN_FIERRO (2)
#define LAS_VENTURAS (3)
new Ciudades[MAX_PLAYERS];
public OnPlayerSpawn(playerid){
switch(GetPlayerTeam(playerid)){
case 1:{ //equipo 1
switch(Ciudades[playerid]){
case LOS_SANTOS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case SAN_FIERRO:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case LAS_VENTURAS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
}
}
case 2:{ //equipo 2
switch(Ciudades[playerid]){
case LOS_SANTOS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case SAN_FIERRO:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case LAS_VENTURAS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
}
}
case 3:{ //equipo 3
switch(Ciudades[playerid]){
case LOS_SANTOS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case SAN_FIERRO:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
case LAS_VENTURAS:{ SetPlayerPos(playerid, 0, 0, 0); SetPlayerFacingAngle(playerid, 0); }
}
}
//ETC..
}
return true;
}