25.08.2012, 15:00
PHP код:
SetPlayerTeam(playerid, 1);//aztecas
SetPlayerTeam(playerid, 2);//grove
SetPlayerTeam(playerid, 3);//pc
//ainda nao fiz o resto kkk
SetPlayerTeam(playerid, 1);//aztecas
SetPlayerTeam(playerid, 2);//grove
SetPlayerTeam(playerid, 3);//pc
//ainda nao fiz o resto kkk
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == Aztecas) // Se Ele For Aztecas Ele Setarб Pro Local Abaixo :
{
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid, CorAztecas); // Setarб a Cor Dele Para AZUL Que й a Cor definida no Topo !
SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969); // Setarб Ele Para Estб Posiзгo
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele.
}// Se Ele Escolher o Skin dos Grove. Ele Darб Spawn No Local Abaixo :
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
SetPlayerTeam(playerid, 2);
SetPlayerColor(playerid, CorGrove); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678);//Setarб Ele Para Estб Posiзгo
SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}
if(gTeam[playerid] == PC)
{
SetPlayerTeam(playerid, 3);
SetPlayerColor(playerid, CorPC);
SetPlayerPos(playerid,1261.5068,-1655.2561,13.6983+3);
SetPlayerInterior(playerid, 0);
}
StopAudioStreamForPlayer(playerid);
return 1;
}
// =========================== GOVRE STREET =====================================================================================
AddPlayerClass(86,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 0]
AddPlayerClass(105,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 1]
AddPlayerClass(106,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 2]
AddPlayerClass(107,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 3]
AddPlayerClass(149,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 4]
AddPlayerClass(270,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);//[ID 5]
//========================== AZTECAS =============================================================================================
AddPlayerClass(114,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 6
AddPlayerClass(115,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 7
AddPlayerClass(116,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 8
AddPlayerClass(173,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 9
//========================== POLICIA CIVIL ======================================================================================
AddPlayerClass(59,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 10
AddPlayerClass(98,2615.7163,-962.7603,80.3227,183.9649,24,500,0,0,0,0);// ID 11
https://sampforum.blast.hk/showthread.php?tid=269210
/\ ele ensina diferente, aplica o dano porйm o player й punido perdendo dinheiro. ao contrбrio й no setplayerteam mesmo |