15.06.2013, 23:24
pawn Код:
#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;
}