Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 4322)
{
if(response == 1)
{
if(listitem == 0)
{
gTeam[playerid] = Chelsea; // ou gTeam[playerid] == 1; ( Seta Ele Para Gang Aztecas )
SetPlayerSkin(playerid, 107); // Setarб Ele Para Skin 116, Dos Aztecas.
SendClientMessage(playerid, 0x0080FFAA,"TIME: Chelsea.");
SpawnPlayer(playerid); // Spawn o Player
return true;
}
return true;
}
return true;
}
public OnPlayerSpawn(playerid)
{
new sendername[MAX_PLAYER_NAME];
if(gTeam[playerid] == Chelsea) // Se Ele For Aztecas Ele Setarб Pro Local Abaixo :
{
SetPlayerColor(playerid, 0x0000FFAA); // Setarб a Cor Do Nick Dele.
SetPlayerPos(playerid, 2352.5442,-1165.3746,27.4620); // Setarб Ele Para Estб Posiзгo Para Sua HQ.
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele Para 0 ( RUA ).
}
if(levelpm[playerid] >= 1 || PlayerInfo[playerid][pPM] >= 1)
{
// PM
SendClientMessage(playerid, COLOR_WHITE, "Use /comandospm para ver os comandos !");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1622.0015,669.7461,7.1875);
GivePlayerWeapon(playerid,23,999999);
GivePlayerWeapon(playerid,25,999999);
GivePlayerWeapon(playerid,28,999999);
GivePlayerWeapon(playerid,3,999999);
SetPlayerArmour(playerid, 100.0);
SetPlayerColor(playerid, 0x0000F6AA);
SetPlayerSkin(playerid, 284);
SetPlayerHealth(playerid, 100.0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid,1);
levelpm[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
dini_IntSet(udb_encode(sendername), "levelpm", levelpm[playerid]);
}
if(levelbope[playerid] >= 1 || PlayerInfo[playerid][pBOPE] >= 1)
{
// BOPE
SendClientMessage(playerid, COLOR_WHITE, "Use /comandosbope para ver os comandos !");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1493.5211,473.5321,7.1875);
GivePlayerWeapon(playerid,29,999999);
GivePlayerWeapon(playerid,27,999999);
GivePlayerWeapon(playerid,31,999999);
GivePlayerWeapon(playerid,24,999999);
GivePlayerWeapon(playerid,3,999999);
GivePlayerWeapon(playerid,34,999999);
GivePlayerWeapon(playerid,41,999999);
SetPlayerArmour(playerid, 100.0);
SetPlayerColor(playerid, 0x6C6B6AAA);
SetPlayerSkin(playerid, 285);
SetPlayerHealth(playerid, 100.0);
SetPlayerVirtualWorld(playerid, 0);
//SpawnPlayer(playerid);
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid, 0x9A9A9CAA, "Homens de preto qual й sua missгo ?");
SendClientMessage(playerid, 0x9A9A9CAA, "Entra favela e deixa corpo no chгo !");
}
if(levelgoe[playerid] >= 1 || PlayerInfo[playerid][pGOE] >= 1)
{
// GOE
SendClientMessage(playerid, COLOR_WHITE, "Use /comandosgoe para ver os comandos !");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2136.1931,-119.5552,36.5191);
GivePlayerWeapon(playerid,29,999999);
GivePlayerWeapon(playerid,27,999999);
GivePlayerWeapon(playerid,31,999999);
GivePlayerWeapon(playerid,24,999999);
GivePlayerWeapon(playerid,3,999999);
GivePlayerWeapon(playerid,41,999999);
GivePlayerWeapon(playerid,23,999999);
SetPlayerArmour(playerid, 100.0);
SetPlayerColor(playerid, 0x000000AA);
SetPlayerSkin(playerid, 281);
SetPlayerHealth(playerid, 100.0);
SetPlayerVirtualWorld(playerid, 0);
//SpawnPlayer(playerid);
TogglePlayerControllable(playerid,1);
}
return 1;
}