Remove Team and Skills In Skin List
#1

any one will help me to remove team and skill from the skin system ? i want to remove TEAM_LAW and SKILL_COP SKILL_MEDIC

PHP код:
#define TEAM_LAW 1
#define SKILL_NONE 0
#define SKILL_COP 1
#define SKILL_MEDIC 2
enum Pedinfo
{
    
Class_Id,
    
Class_Name[128],
    
Spawn_TeamId,
    
Spawn_SkillId,
    
Spawn_SkinId,
    
Float:Spawn_X,
    
Float:Spawn_Y,
    
Float:Spawn_Z,
    
Float:Spawn_A
}
new 
Peds[][Pedinfo] =
{
    {
0    ,"~b~Public Service~n~~g~Police Officer"    ,TEAM_LAW    ,SKILL_COP    ,280    ,2294.0832512451.57836910.82031289.162681    },
    {
1    ,"~b~Public Service~n~~g~Police Officer"    ,TEAM_LAW    ,SKILL_COP    ,281    ,2294.0832512451.57836910.82031289.162681    },
    {
2    ,"~b~Public Service~n~~g~Police Officer"    ,TEAM_LAW    ,SKILL_COP    ,282    ,2294.0832512451.57836910.82031289.162681    },
    {
3    ,"~b~Public Service~n~~g~County Sheriff"    ,TEAM_LAW    ,SKILL_COP    ,283    ,-213.359344979.49389619.332237272.853759    },
    {
4    ,"~b~Public Service~n~~g~County Sheriff"    ,TEAM_LAW    ,SKILL_COP    ,288    ,-213.359344979.49389619.332237272.853759    },
    {
5    ,"~b~Public Service~n~~g~Motor Cycle Cop"    ,TEAM_LAW    ,SKILL_COP    ,284    ,2294.0832512451.57836910.82031289.162681    },
    {
6    ,"~b~Public Service~n~~g~S.W.A.T"            ,TEAM_LAW    ,SKILL_COP    ,285    ,2282.1115722426.139648, -7.250000357.726348},
    {
7    ,"~b~Public Service~n~~g~F.B.I"                ,TEAM_LAW    ,SKILL_COP    ,286    ,2282.1115722426.139648, -7.250000357.726348},
    {
8    ,"~b~Public Service~n~~g~Secret Service"    ,TEAM_LAW    ,SKILL_COP    ,163    ,945.7587281733.1721198.851562271.162628    },
    {
9    ,"~b~Public Service~n~~g~Secret Service"    ,TEAM_LAW    ,SKILL_COP    ,164    ,945.7587281733.1721198.851562271.162628    },
    {
10    ,"~b~Public Service~n~~g~C.I.A"                ,TEAM_LAW    ,SKILL_COP    ,165    ,945.7587281733.1721198.851562271.162628    },
    {
11    ,"~b~Public Service~n~~g~C.I.A"                ,TEAM_LAW    ,SKILL_COP    ,166    ,945.7587281733.1721198.851562271.162628    },
    {
12    ,"~b~Public Service~n~~g~Police Officer"    ,TEAM_LAW    ,SKILL_COP    ,211    ,2282.2385252426.2399903.469186359.821960    },
    {
13    ,"~b~Public Service~n~~g~Police Officer"    ,TEAM_LAW    ,SKILL_COP    ,192    ,2282.2385252426.2399903.469186359.821960    },
    {
14    ,"~b~Public Service~n~~g~Military"            ,TEAM_LAW    ,SKILL_COP    ,287    ,2282.1115722426.139648, -7.250000357.726348},
    {
15    ,"~b~Public Service~n~~g~Security Guard"    ,TEAM_LAW    ,SKILL_COP    ,71        ,1319.2547601256.16638110.820312357.406555},
    {
16    ,"~b~Public Service~n~~g~Vigilante"            ,TEAM_LAW    ,SKILL_COP    ,217    ,2282.1115722426.139648, -7.250000357.726348},
    {
17    ,"~b~Public Service~n~~g~Paramedic"            ,TEAM_LAW    ,SKILL_MEDIC,274    ,1608.0015,1824.9731,10.8203,0.9841    },
    {
18    ,"~b~Public Service~n~~g~Paramedic"            ,TEAM_LAW    ,SKILL_MEDIC,275    ,1608.0015,1824.9731,10.8203,0.9841    },
    {
19    ,"~b~Public Service~n~~g~Paramedic"            ,TEAM_LAW    ,SKILL_MEDIC,276    ,1608.0015,1824.9731,10.8203,0.9841    },
    {
20    ,"~b~Public Service~n~~g~Fire Fighter"        ,TEAM_LAW    ,SKILL_MEDIC,277    ,1743.8276362082.03222610.820312181.575714},
    {
21    ,"~b~Public Service~n~~g~Fire Fighter"        ,TEAM_LAW    ,SKILL_MEDIC,278    ,1743.8276362082.03222610.820312181.575714},
    {
22    ,"~b~Public Service~n~~g~Fire Fighter"        ,TEAM_LAW    ,SKILL_MEDIC,279    ,1743.8276362082.03222610.820312181.575714},
    {
31    ,"~w~STREET THUG"            ,TEAM_CIVILIAN    ,SKILL_NONE    ,7    ,2024.8580321545.40661610.820312274.217559    },
    {
32    ,"~w~BUSINESS WOMAN"        ,TEAM_CIVILIAN    ,SKILL_NONE    ,9    ,2024.8580321545.40661610.820312274.217559    },
    {
33    ,"~w~RAPPING GRANDMA"        ,TEAM_CIVILIAN    ,SKILL_NONE    ,10    ,2024.8580321545.40661610.820312274.217559    },
    {
34    ,"~w~GOLD DIGGER"            ,TEAM_CIVILIAN    ,SKILL_NONE    ,12    ,2024.8580321545.40661610.820312274.217559    }
}; 
OnGameModeInit:
PHP код:
    for (new 0sizeof(Peds); i++)
    {
        
AddPlayerClassEx(Peds[i][Spawn_TeamId], Peds[i][Spawn_SkinId], Peds[i][Spawn_X], Peds[i][Spawn_Y], Peds[i][Spawn_Z], Peds[i][Spawn_A], 0,00,00,0);
    } 
OnPlayerRequestClass
PHP код:
            if (PlayerInfo[playerid][pRegistered] == && PlayerInfo[playerid][pLogged] == 0)
            {
                
format(stringsizeof(string), "%s",Peds[classid][Class_Name]);
                
GameTextForPlayer(playerid,string,5000,3);
                
PlayerInfo[playerid][pClass] = classid;
                
PlayerInfo[playerid][pTeam] = Peds[classid][Spawn_TeamId];
                
PlayerInfo[playerid][pSkill] = Peds[classid][Spawn_SkillId];
            } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)