#define GANG_GATES 0
AddPlayerClassEx(GANG_GATES,285,-1615.0461,681.2841,7.1875,176.7815,0,0,0,0,0,0); //Gate
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Gates~y~]",2000,3);
gangteam[playerid] = 0;
format(pgang[playerid],15,pgangnames[0]);
SetPlayerColor(playerid,0xFF9900AA);
SetPlayerTeam(playerid, GANG_GATES);
}
if(gangteam[playerid] == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 27, 50);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 41, 100);
SetPlayerTeam(playerid,GANG_GATES);
0 й um nъmero nulo, use o nъmero 1.
Para nao bugar as demais, caso for 1, use 2. Se for 2, use 3. E por aн vai... Espero ter ajudado |
#define GANG_GATES 1
#define GANG_MILITARES 2
#define GANG_BOYZINHOS 3
#define GANG_NOIAS 4
#define GANG_FRANGOS 5
#define GANG_AGENTES 6
#define GANG_TRIADS 7
#define GANG_VAGOS 8
#define GANG_AZTEKAS 9
#define GANG_GROVE 10
#define GANG_BALLAS 11
#define GANG_GANGSTERS 12
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2670.6008,1410.5863,907.5703);
SetPlayerFacingAngle(playerid, 269.8957);
SetPlayerCameraPos(playerid,-2666.6008,1410.5863,907.5703);
SetPlayerCameraLookAt(playerid,-2670.6008,1410.5863,907.5703);
ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Gates~y~]",2000,3);
gangteam[playerid] = 0;
format(pgang[playerid],15,pgangnames[0]);
SetPlayerColor(playerid,0xFF9900AA);
SetPlayerTeam(playerid, GANG_GATES);
}
case 1,2:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang do Militares~y~]",2000,3);
gangteam[playerid] = 1;
format(pgang[playerid],15,pgangnames[1]);
SetPlayerColor(playerid,0x0000BBAA);
SetPlayerTeam(playerid, GANG_MILITARES);
}
case 3,4:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Boyzinhos~y~]",2000,3);
gangteam[playerid] = 2;
format(pgang[playerid],15,pgangnames[2]);
SetPlayerColor(playerid,0xAA3333AA);
SetPlayerTeam(playerid, GANG_BOYZINHOS);
}
case 5,6:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Noias~y~]",2000,3);
gangteam[playerid] = 3;
format(pgang[playerid],15,pgangnames[3]);
SetPlayerColor(playerid,0x1E90FFAA);
SetPlayerTeam(playerid, GANG_NOIAS);
}
case 7:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Frangos~y~]",2000,3);
gangteam[playerid] = 4;
format(pgang[playerid],15,pgangnames[4]);
SetPlayerColor(playerid, 0xFF0000AA);
SetPlayerTeam(playerid, GANG_FRANGOS);
}
case 8,9:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Agentes~y~]",2000,3);
gangteam[playerid] = 5;
format(pgang[playerid],15,pgangnames[5]);
SetPlayerColor(playerid,0x778899AA);
SetPlayerTeam(playerid, GANG_AGENTES);
}
case 10,11:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Triads~y~]",2000,3);
gangteam[playerid] = 6;
format(pgang[playerid],15,pgangnames[6]);
SetPlayerColor(playerid,0xFF66FFAA);
SetPlayerTeam(playerid, GANG_TRIADS);
}
case 12,13:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Los Vagos~y~]",2000,3);
gangteam[playerid] = 7;
format(pgang[playerid],15,pgangnames[7]);
SetPlayerColor(playerid,0x8B4513AA);
SetPlayerTeam(playerid, GANG_VAGOS);
}
case 14:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos AZTEKAS~y~]",2000,3);
gangteam[playerid] = 8;
format(pgang[playerid],15,pgangnames[8]);
SetPlayerColor(playerid,0x33AA33AA);
SetPlayerTeam(playerid, GANG_ASTEKAS);
}
case 15,16,17,18:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang da Grove~y~]",2000,3);
gangteam[playerid] = 9;
format(pgang[playerid],15,pgangnames[9]);
SetPlayerColor(playerid,0x0D5800AA);
SetPlayerTeam(playerid, GANG_GROOVE);
}
case 19,20,21:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Ballas~y~]",2000,3);
gangteam[playerid] = 10;
format(pgang[playerid],15,pgangnames[10]);
SetPlayerColor(playerid,0x800080AA);
SetPlayerTeam(playerid, GANG_BALLAS);
}
case 22,23:
{
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Gangsters~y~]",2000,3);
gangteam[playerid] = 11;
format(pgang[playerid],15,pgangnames[11]);
SetPlayerColor(playerid,0xFFFF0096);
SetPlayerTeam(playerid, GANG_GANGSTERS);
}
}
return 1;
}
#define GANG_GATES 1
#define GANG_MILITARES 2
#define GANG_BOYZINHOS 3
#define GANG_NOIAS 4
#define GANG_FRANGOS 5
#define GANG_AGENTES 6
#define GANG_TRIADS 7
#define GANG_VAGOS 8
#define GANG_AZTEKAS 9
#define GANG_GROVE 10
#define GANG_BALLAS 11
#define GANG_GANGSTERS 12
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerPos(playerid,-2670.6008,1410.5863,907.5703);
SetPlayerFacingAngle(playerid, 269.8957);
SetPlayerInterior(playerid,3);
SetPlayerCameraPos(playerid,-2666.6008,1410.5863,907.5703);
SetPlayerCameraLookAt(playerid,-2670.6008,1410.5863,907.5703);
ApplyAnimation(playerid,"Dancing","Dan_Loop_A",5.0,0,0,0,0,0);
switch(classid)
{
case 0:
{
SetPlayerColor(playerid,0xFF9900AA);
SetPlayerTeam(playerid,GANG_GATES);
gangteam[playerid] = 1;
}
case 1,2:
{
SetPlayerColor(playerid,0x0000BBAA);
SetPlayerTeam(playerid, GANG_MILITARES);
gangteam[playerid] = 2;
}
case 3,4:
{
SetPlayerColor(playerid,0xAA3333AA);
SetPlayerTeam(playerid, GANG_BOYZINHOS);
gangteam[playerid] = 3;
}
case 5,6:
{
SetPlayerColor(playerid,0x1E90FFAA);
SetPlayerTeam(playerid, GANG_NOIAS);
gangteam[playerid] = 4;
}
case 7:
{
SetPlayerColor(playerid, 0xFF0000AA);
SetPlayerTeam(playerid, GANG_FRANGOS);
gangteam[playerid] = 5;
}
case 8,9:
{
SetPlayerColor(playerid,0x778899AA);
SetPlayerTeam(playerid, GANG_AGENTES);
gangteam[playerid] = 6;
}
case 10,11:
{
SetPlayerColor(playerid,0xFF66FFAA);
SetPlayerTeam(playerid, GANG_TRIADS);
gangteam[playerid] = 7;
}
case 12,13:
{
SetPlayerColor(playerid,0x8B4513AA);
SetPlayerTeam(playerid, GANG_VAGOS);
gangteam[playerid] = 8;
}
case 14:
{
SetPlayerColor(playerid,0x33AA33AA);
SetPlayerTeam(playerid, GANG_ASTEKAS);
gangteam[playerid] = 9;
}
case 15,16,17,18:
{
SetPlayerColor(playerid,0x0D5800AA);
SetPlayerTeam(playerid, GANG_GROOVE);
gangteam[playerid] = 10;
}
case 19,20,21:
{
SetPlayerColor(playerid,0x800080AA);
SetPlayerTeam(playerid, GANG_BALLAS);
gangteam[playerid] = 11;
}
case 22,23:
{
SetPlayerColor(playerid,0xFFFF0096);
SetPlayerTeam(playerid, GANG_GANGSTERS);
gangteam[playerid] = 12;
}
}
return 1;
}