more classes please help.
#1

hey i have this script cops and robber and i want add more skin but i cant add no more because when i add more a civil will be a cops and a cop skin will be a civil i want add more but not to mess up my cops and robbers onplayerrequest

PHP код:
    AddPlayerClass(2801958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2811958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2821958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2831958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2841958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2881958.37831343.157215.3746269.1425000000); // Police
    
AddPlayerClass(2861958.37831343.157215.3746269.1425000000); // FBI
    
AddPlayerClass(2851958.37831343.157215.3746269.1425000000); // SWAT
    
AddPlayerClass(2871958.37831343.157215.3746269.1425000000); // Army
    
AddPlayerClass(2741958.37831343.157215.3746269.1425000000); // Medic
    
AddPlayerClass(2751958.37831343.157215.3746269.1425000000); // Medic
    
AddPlayerClass(2761958.37831343.157215.3746269.1425000000); // Medic 20
    
AddPlayerClass(71958.37831343.157215.3746269.1425000000); // Civilian 0
    
AddPlayerClass(111958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(191958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(211958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(231958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(281958.37831343.157215.3746269.1425000000); // Civilian 5
    
AddPlayerClass(291958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(461958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(471958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(591958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(981958.37831343.157215.3746269.1425000000); // Civilian 10
    
AddPlayerClass(1011958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(1161958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(1241958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(1861958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(1881958.37831343.157215.3746269.1425000000); // Civilian 15
    
AddPlayerClass(2231958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(2401958.37831343.157215.3746269.1425000000); // Civilian
    
AddPlayerClass(581958.37831343.157215.3746269.1425000000); // Civilian 
script info!

PHP код:
#include <a_samp>
#include <dudb>
#include <CPLoader>
#include <ladmin>
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000FFAA
#define blue 0x0000FFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_ORANGE 0xFF9933AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLACK 0x2C2727AA
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_AQUA 0x7CFC00AA
#define COLOR_WHITEYELLOW 0xFFE87DFF
#define COLOR_BLUEAQUA 0x7E60FFFF
#define COLOR_DARKBLUE 0x15005EFF
#define COLOR_ALIEN 0x90FF87FF
#define COLOR_GOLD 0xB8860BAA
#define KICK_COLOR 0xFF0000FF
#define COLOR_GANGGREEN 0x00FF0096
#define COLOR_BLACK 0x2C2727AA
#define COLOR_SBLUE 0x00BFFFAA
#define WHITE 0xF6F6F6AA
#define GREY 0xC6C6C6AA
#define RED 0xF60000AA
#define COLOR_ERROR 0xF60000AA
#define COLOR_RED 0xAA3333AA
#define LIGHT_BLUE 0x00A4F6AA
#define BLUE 0x0000F6AA
#define DARK_BLUE 0x0000AFAA
#define LIGHT_GREEN 0x00F600AA
#define GREEN 0x00AD00AA
#define DARK_GREEN 0x005000AA
#define YELLOW 0xF6F600AA
#define ORANGE 0xF67F00AA
#define BLACK 0x000000AA
#define COLOR_ROYALBLUE 0x4169FFAA
#define PINK 0xFF6EC7AA
#define SERVER_COLOR 0x85F600AA
#define ERROR 0x990000AA
#define COLOR_MSG 0x00FFFFFF //Color of general messages
#define STUNNED_TIME 4 //The time in seconds the stun lasts
#define ANTISPAM 5 //The minimum allowed time between /taze commands
#define COLOR_KILLED 0x880000FF //The color, when a player gets killed by tazing
#define CIVILIAN 0
#define Medic 1
#define COP 2
#define FBI 3
#define SWAT 4
#define ARMY 5
//--------------Taxi-----------
#define BAJADA_DE_BANDERA 500
#define PRECIO_FICHA 300
#define COLOR_YELLOW 0xFFFF00AA
//-----------------------------
/* ----------HIT COMMAND----------*/
#define COLOR_FOUND 0xFFFF00AA //Color of the message if a hit was found in /hits
#define COLOR_MSG 0x00FFFFFF //Color of general messages
#define ANTISPAM_TIME 5 //The minimum time between /hit commands to prevent spam (in seconds)
/*----------NO NEED TO EDIT FROM HERE----------*/
#define MAX_PLAYERS_ 50
#define SPAWN_GAS_MIN      35
#define SPAWN_GAS_MAX      100
#define MAX_START_TIME     3
#define BAJADA_DE_BANDERA2 500
#define PRECIO_FICHA2 300
#define RegisterName 1
#define LoginName 2
#define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
static gTeam[MAX_PLAYERS];
new 
GPSTimer[MAX_PLAYERS];
new 
bool:HaveGPS[MAX_PLAYERS];
enum aInfo
{
        
aLevel
}
;
new 
AccountInfo[MAX_PLAYERS][aInfo];
new 
RecentlyRobbed[MAX_PLAYERS];
new 
ATMRecentlyRobbed;
new 
DildoRecentlyRobbed;
new 
HallRecentlyRobbed;
new 
RentalRecentlyRobbed;
new 
BankRecentlyRobbed;
new 
BincoRecentlyRobbed;
new 
ZipRecentlyRobbed;
new 
UrbanRecentlyRobbed;
new 
AmmuRecentlyRobbed;
new 
Ammu2RecentlyRobbed;
new 
Ammu3RecentlyRobbed;
new 
Ammu4RecentlyRobbed;
new 
Ammu5RecentlyRobbed;
new 
DrugsRecentlyRobbed;
new 
D4RecentlyRobbed;
new 
CaRecentlyRobbed;
new 
gPlayerUsingLoopingAnim[MAX_PLAYERS];
new 
animation[200];
//BUS
new OnBusAsPassenger[MAX_PLAYERS];
new 
CostoDelViaje2[MAX_PLAYERS];
new 
contador2[MAX_PLAYERS];
new 
playerInMiniMission2[MAX_PLAYERS];
new 
avisado2[MAX_PLAYERS];
new 
caidadeficha2Timer2;
new 
cantidadPasajeros2;
forward terminarMission2(playerid);
forward caidadeficha2();
//
new IsSpawned[MAX_PLAYERS];
new 
SelectBM[MAX_PLAYERS];
new 
PlayerSkin[MAX_PLAYERS];
new 
SelectTM[MAX_PLAYERS];
new 
InTrashMission[MAX_PLAYERS];
new 
time;
new 
Muted[MAX_PLAYERS]; 
Reply
#2

Can you show us your OnPlayerSpawn part of code?
Reply
#3

sure

Quote:

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "If You Dont Like Your Character press F4 And /kill!");
HideDraw(playerid);
SetPlayerInterior(playerid, 0);
TextDrawShowForPlayer(playerid, randommsg);
//LV MAP ICON
SetPlayerMapIcon(playerid, 0, 2019.5000, 1913.0396, 12.3114, 52, 0); // Bank
SetPlayerMapIcon(playerid, 5, 2287.0925, 2431.6145, 10.8203, 30, 0); // LVPD
SetPlayerMapIcon(playerid, 6, 1607.4465, 1816.1157, 10.8203, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 7, 2412.5625, 1123.8337, 10.8203, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 8, 2085.6697, 2074.0100, 11.0547, 12, 0); // RuNix's Dildos
SetPlayerMapIcon(playerid, 9, 2172.1233, 1398.1210, 11.0625, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 10, 2113.2854, 1333.5800, 10.8203, 49, 0); // BulletXT's Bar
SetPlayerMapIcon(playerid, 11, 2101.8979, 2257.3718, 11.0234, 45, 0); // Binco
SetPlayerMapIcon(playerid, 12, 2249.1479, 960.5301, 10.8130, 45, 0); // ZIP
SetPlayerMapIcon(playerid, 13, 2032.1550, 2162.4448, 10.8203, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 14, 2184.2126, 2295.6084, 10.8203, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 15, 2491.5000, 918.4912, 11.0234, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 42, 2019.3212,1007.7536,10.8203, 44, 0); // D4ragoni
SetPlayerMapIcon(playerid, 43, 2196.9517,1677.1399,12.3672, 25, 0); // Caligulas
SetPlayerMapIcon(playerid, 45,460.2683,-1502.9524,31.0257, 25, 0);
//LS MAP ICON
SetPlayerMapIcon(playerid, 16, 1122.7067,-2037.0416,69.8942, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 52, 1921.6742,-1787.5640,13.3906, 24, 0); //new atms bank
SetPlayerMapIcon(playerid, 17, 1857.1792,-1874.2761,13.4829, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 18, 2244.4128,-1665.5463,15.4766, 45, 0); // Binco
SetPlayerMapIcon(playerid, 19, 2309.8811,-1643.7646,14.8270, 49, 0); // Bar
SetPlayerMapIcon(playerid, 20, 1481.1427,-1771.6808,18.7958, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 21, 1172.8318,-1323.2954,15.4001, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 22, 1555.0673,-1675.6428,16.1953, 30, 0); // LSPD
SetPlayerMapIcon(playerid, 23, 1411.7141,-1700.0085,13.5395, 52, 0); // Bank
SetPlayerMapIcon(playerid, 24, 1703.9697,-1469.9948,13.5469, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 25, 499.6478,-1360.3167,16.3421, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 26, 822.3297,-1757.5181,13.6484, 45, 0); // SubUrban 2
SetPlayerMapIcon(playerid, 27, 2139.1853,-1743.2207,13.5524, 45, 0); // ZIP
//SF MAP ICON
SetPlayerMapIcon(playerid, 28, -2719.4172,-319.2030,7.8438, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 29, -2032.9038,161.4297,29.0461, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 30, -2655.0779,640.0289,14.4545, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 31, -1605.4486,710.8713,13.8672, 30, 0); // SFPD
SetPlayerMapIcon(playerid, 32, -1581.2535,867.2552,7.6953, 52, 0); // Bank
SetPlayerMapIcon(playerid, 33, -1946.0483,273.3452,35.4739, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 34, -2490.9307,-142.7729,25.6172, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 35, -1881.1808,823.0976,35.1770, 45, 0); // ZIP
//ATM-uri
SetPlayerMapIcon(playerid, 1,2172.8428, 1416.7751, 11.0625, 52, 0); // ATM
SetPlayerMapIcon(playerid, 2,2110.5188, 2060.4219, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 3,2134.0115, 2379.3159, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 4,2455.5420, 1681.4117, 11.0234, 52, 0); // ATM
SetPlayerMapIcon(playerid, 36,-2635.9067,1398.5020,7.0938, 52, 0); // ATM
SetPlayerMapIcon(playerid, 37,-1575.3977,902.4458,7.5610, 52, 0); // ATM
SetPlayerMapIcon(playerid, 38,-2434.0908,516.8967,30.3705, 52, 0); // ATM
SetPlayerMapIcon(playerid, 39,852.7184,-1760.9111,13.5491, 52, 0); // ATM
SetPlayerMapIcon(playerid, 40,1243.2965,-1561.1505,13.5545, 52, 0); // ATM
SetPlayerMapIcon(playerid, 41,1787.9928,-1592.2491,13.4870, 52, 0); // ATM

IsSpawned[playerid] =1;

new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));

if(gTeam[playerid] == CIVILIAN)
{
SetPlayerColor(playerid, WHITE);
new file[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "%s.Cab28842", name);
new position = random(sizeof(CivilianSpawn));
SetPlayerPos(playerid, CivilianSpawn[position][0], CivilianSpawn[position][1], CivilianSpawn[position][2]);
SetPlayerFacingAngle(playerid, CivilianSpawn[position][3]);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, true);
GivePlayerWeapon(playerid,5,1);
GivePlayerWeapon(playerid, 32, 200);
GivePlayerWeapon(playerid, 43, 50);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 26, 200);
if(PlayerSkin[playerid] >= 0)
{
SetPlayerSkin(playerid,dini_Int(file, "Skin"));
}
}
else if(gTeam[playerid] == Medic)
{
SetPlayerColor(playerid, PINK);
new position = random(sizeof(MedicSpawn));
SetPlayerPos(playerid, MedicSpawn[position][0], MedicSpawn[position][1], MedicSpawn[position][2]);
SetPlayerFacingAngle(playerid, MedicSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, PINK, "As A Medic,Your Job Is To Heal Injured Players. Enter An Amblulance, And Wait For A Call.");
SendClientMessage(playerid, PINK, "/heal, /healme For A Full List Of Commands, Type /cmds.");
GivePlayerWeapon(playerid,41,1000);
}
else if(gTeam[playerid] == COP)
{
new position = random(sizeof(CopSpawn));
SetPlayerColor(playerid, LIGHT_BLUE);
SetPlayerPos(playerid, CopSpawn[position][0], CopSpawn[position][1], CopSpawn[position][2]);
SetPlayerFacingAngle(playerid, CopSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_BLUE, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_BLUE, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,25,100);
GivePlayerWeapon(playerid,22,100);
GivePlayerWeapon(playerid,32,100);
GivePlayerWeapon(playerid,43,100);
}
else if(gTeam[playerid] == SWAT || gTeam[playerid] == FBI)
{
SetPlayerColor(playerid, BLUE);
new position = random(sizeof(SFSpawn));
SetPlayerPos(playerid, SFSpawn[position][0], SFSpawn[position][1], SFSpawn[position][2]);
SetPlayerFacingAngle(playerid, SFSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_BLUE, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_BLUE, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,29,400);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,31,300);
}
else if(gTeam[playerid] == ARMY)
{
SetPlayerColor(playerid, GREEN);
new position = random(sizeof(ARMYSpawn));
SetPlayerPos(playerid, ARMYSpawn[position][0], ARMYSpawn[position][1], ARMYSpawn[position][2]);
SetPlayerFacingAngle(playerid, ARMYSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_GREEN, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_GREEN, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,29,400);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,31,300);
}
Spawned[playerid] = 1;
return true;
}

Reply
#4

Where are the team variables set? Try searching for them in the script and paste that part of code here.

Try searching for this: gTeam[playerid] = COP
Reply
#5

ok here if you need more just keep telling me
Thanks cuz u helping me

PHP код:
SetPlayerTeamFromClass(playeridclassid)
{
    if(
classid >= && classid <= 5gTeam[playerid] = COP;
    else if(
classid == 6gTeam[playerid] = FBI;
    else if(
classid == 7gTeam[playerid] = SWAT;
    else if(
classid == 8gTeam[playerid] = ARMY;
    else if(
classid >= && classid <= 11gTeam[playerid] = Medic;
    else if(
classid >= 12 && classid <= 30gTeam[playerid] = CIVILIAN;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerTeamFromClass(playeridclassid);
    
Spawned[playerid] = 0;
    if(
classid >= && classid <= 5)
    {
        
GameTextForPlayer(playerid"~b~Police Officer"30003);
        
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }else if(
classid == 6)
    {
        
GameTextForPlayer(playerid"~b~FBI"30003);
        
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }else if(
classid == 7)
    {
        
GameTextForPlayer(playerid"~b~SWAT"30003);
        
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }
    else if(
classid == 8)
    {
        
GameTextForPlayer(playerid"~g~Army"30003);
        
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }
    else if(
classid >= && classid <= 11)
     {
         
GameTextForPlayer(playerid"~p~~h~Medic"30003);
         
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }
    if(
classid >= 12 && classid <= 30)
    {
        
GameTextForPlayer(playerid"~w~Civilian"30003);
        
SetPlayerInterior(playerid1);
         
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
        
SetPlayerFacingAngle(playerid94.0821);
        
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
        
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234);
    }
    return 
true;

Reply
#6

You need to add your newly added classes to the SetPlayerTeamFromClasses and OnPlayerRequestClass.

Example, let's say you are adding class ID 0 for cops:
pawn Код:
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // You add this on OnPlayerRequestSpawn
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid >= 0 && classid <= 5 || classid == 0) gTeam[playerid] = COP;  // You add your newly added class to the check
    else if(classid == 6) gTeam[playerid] = FBI;
    else if(classid == 7) gTeam[playerid] = SWAT;
    else if(classid == 8) gTeam[playerid] = ARMY;
    else if(classid >= 9 && classid <= 11) gTeam[playerid] = Medic;
    else if(classid >= 12 && classid <= 30) gTeam[playerid] = CIVILIAN;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    Spawned[playerid] = 0;
    if(classid >= 0 && classid <= 5 || classid == 0) // Just use 'or' ( || ) to add more classes in here
    {
        GameTextForPlayer(playerid, "~b~Police Officer", 3000, 3);
        SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }else if(classid == 6)
    {
        GameTextForPlayer(playerid, "~b~FBI", 3000, 3);
        SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }else if(classid == 7)
    {
        GameTextForPlayer(playerid, "~b~SWAT", 3000, 3);
        SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }
    else if(classid == 8)
    {
        GameTextForPlayer(playerid, "~g~Army", 3000, 3);
        SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }
    else if(classid >= 9 && classid <= 11)
     {
         GameTextForPlayer(playerid, "~p~~h~Medic", 3000, 3);
         SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }
    if(classid >= 12 && classid <= 30)
    {
        GameTextForPlayer(playerid, "~w~Civilian", 3000, 3);
        SetPlayerInterior(playerid, 1);
         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
        SetPlayerFacingAngle(playerid, 94.0821);
        SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
    }
    return true;
}
Haven't tested it but should work. I hope you understand what I wanted to say.
Reply
#7

well it dint work lol its still do same can u do it with the civil please
Reply
#8

Thanks alot For helping Even know it dint work but u Try and that all i care about thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)