02.03.2014, 07:13
https://sampwiki.blast.hk/wiki/OnPlayerSpawn
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerPos
pawn Код:
enum facc{
FaccGay,
FaccBomberos,
FaccPutas,
FaccPolicias, };
new InfoFacciones[MAX_PLAYERS][facc];
public OnPlayerSpawn(playerid){
if(InfoFacciones[playerid][FaccGay] >= 1){
//TU CODE
//SetPlayerPos[...];
}
else if(InfoFacciones[playerid][FaccBomberos] >= 1){
//TU CODE
//SetPlayerPos[...];
}
else if(InfoFacciones[playerid][FaccPutas] >= 1){
//TU CODE
//SetPlayerPos[...];
}
else if(InfoFacciones[playerid][FaccPolicias] >= 1){
//TU CODE
//SetPlayerPos[...];
}
// ETC...
return true;
}