new gTeam[MAX_PLAYERS];
new Menu:Empregos;
#define TEAM_DROGAS 1
#define TEAM_ARMAS 2
#define TEAM_DETETIVE 3
#define TEAM_SEGURANCA 4
#define TEAM_BOXE 5
#define TEAM_PUTA 6
#define TEAM_MECANICO 7
#define TEAM_CAMINHAO 8
Empregos = CreateMenu("Empregos", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Empregos, 0, "Vendedor De Drogas");
AddMenuItem(Empregos, 0, "Vendedor de Armas");
AddMenuItem(Empregos, 0, "Detetive");
AddMenuItem(Empregos, 0, "Seguranca");
AddMenuItem(Empregos, 0, "Boxe");
AddMenuItem(Empregos, 0, "Prostituta");
AddMenuItem(Empregos, 0, "Mecanico");
AddMenuItem(Empregos, 0, "Caminhoneiro");
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Empregos)
{
switch(row)
{
case 0:{
if(gTeam[playerid] == TEAM_DROGAS)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,29);
SetPlayerColor(playerid,0x0080C0AA);
TogglePlayerControllable(playerid, 1);
}
case 1:{
if(gTeam[playerid] == TEAM_ARMAS)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,67);
SetPlayerColor(playerid,0x800040AA);
TogglePlayerControllable(playerid, 1);
}
case 2:{
if(gTeam[playerid] == TEAM_DETETIVE)
SetPlayerColor(playerid,0x808000AA);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce estб prestes a se tornar um Detective, terб que cumprir 5 horas de contrato.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Para se tornar Detective, digite /aceitar emprego.");
SetPlayerSkin(playerid, 33);
TogglePlayerControllable(playerid, 1);
}
case 3:{
if(gTeam[playerid] == TEAM_SEGURANCA)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,124);
SetPlayerColor(playerid,0xFF8080AA);
TogglePlayerControllable(playerid, 1);
}
case 4:{
if(gTeam[playerid] == TEAM_BOXE)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,81);
SetPlayerColor(playerid,0x400000AA);
TogglePlayerControllable(playerid, 1);
}
case 5:{
if(gTeam[playerid] == TEAM_PUTA)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,87);
SetPlayerColor(playerid,0xFF80FFAA);
TogglePlayerControllable(playerid, 1);
}
case 6:{
if(gTeam[playerid] == TEAM_MECANICO)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,50);
SetPlayerColor(playerid,0xC0C0C0AA);
TogglePlayerControllable(playerid, 1);
}
case 7:{
if(gTeam[playerid] == TEAM_CAMINHAO)
TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid,180);
SetPlayerColor(playerid,0x808080AA);
TogglePlayerControllable(playerid, 1);
}
}
}
return 1;
}
if (strcmp(cmdtext,"/Empregos", true)==0)
{
ShowMenuForPlayer(Empregos, playerid);
TogglePlayerControllable(playerid, 0); // Vamos parб-lo para que ele nгo se mova com o Menu aberto
return 1;
}
ueahueah, Expandir os Negуcios TbmІІІІ
Eu n vo abandonar o SAMP, so expandir prum VC ueahuaeheuea |