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
OnGameModeInit:
OnPlayerRequestClass
PHP Code:
#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.083251, 2451.578369, 10.820312, 89.162681 },
{1 ,"~b~Public Service~n~~g~Police Officer" ,TEAM_LAW ,SKILL_COP ,281 ,2294.083251, 2451.578369, 10.820312, 89.162681 },
{2 ,"~b~Public Service~n~~g~Police Officer" ,TEAM_LAW ,SKILL_COP ,282 ,2294.083251, 2451.578369, 10.820312, 89.162681 },
{3 ,"~b~Public Service~n~~g~County Sheriff" ,TEAM_LAW ,SKILL_COP ,283 ,-213.359344, 979.493896, 19.332237, 272.853759 },
{4 ,"~b~Public Service~n~~g~County Sheriff" ,TEAM_LAW ,SKILL_COP ,288 ,-213.359344, 979.493896, 19.332237, 272.853759 },
{5 ,"~b~Public Service~n~~g~Motor Cycle Cop" ,TEAM_LAW ,SKILL_COP ,284 ,2294.083251, 2451.578369, 10.820312, 89.162681 },
{6 ,"~b~Public Service~n~~g~S.W.A.T" ,TEAM_LAW ,SKILL_COP ,285 ,2282.111572, 2426.139648, -7.250000, 357.726348},
{7 ,"~b~Public Service~n~~g~F.B.I" ,TEAM_LAW ,SKILL_COP ,286 ,2282.111572, 2426.139648, -7.250000, 357.726348},
{8 ,"~b~Public Service~n~~g~Secret Service" ,TEAM_LAW ,SKILL_COP ,163 ,945.758728, 1733.172119, 8.851562, 271.162628 },
{9 ,"~b~Public Service~n~~g~Secret Service" ,TEAM_LAW ,SKILL_COP ,164 ,945.758728, 1733.172119, 8.851562, 271.162628 },
{10 ,"~b~Public Service~n~~g~C.I.A" ,TEAM_LAW ,SKILL_COP ,165 ,945.758728, 1733.172119, 8.851562, 271.162628 },
{11 ,"~b~Public Service~n~~g~C.I.A" ,TEAM_LAW ,SKILL_COP ,166 ,945.758728, 1733.172119, 8.851562, 271.162628 },
{12 ,"~b~Public Service~n~~g~Police Officer" ,TEAM_LAW ,SKILL_COP ,211 ,2282.238525, 2426.239990, 3.469186, 359.821960 },
{13 ,"~b~Public Service~n~~g~Police Officer" ,TEAM_LAW ,SKILL_COP ,192 ,2282.238525, 2426.239990, 3.469186, 359.821960 },
{14 ,"~b~Public Service~n~~g~Military" ,TEAM_LAW ,SKILL_COP ,287 ,2282.111572, 2426.139648, -7.250000, 357.726348},
{15 ,"~b~Public Service~n~~g~Security Guard" ,TEAM_LAW ,SKILL_COP ,71 ,1319.254760, 1256.166381, 10.820312, 357.406555},
{16 ,"~b~Public Service~n~~g~Vigilante" ,TEAM_LAW ,SKILL_COP ,217 ,2282.111572, 2426.139648, -7.250000, 357.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.827636, 2082.032226, 10.820312, 181.575714},
{21 ,"~b~Public Service~n~~g~Fire Fighter" ,TEAM_LAW ,SKILL_MEDIC,278 ,1743.827636, 2082.032226, 10.820312, 181.575714},
{22 ,"~b~Public Service~n~~g~Fire Fighter" ,TEAM_LAW ,SKILL_MEDIC,279 ,1743.827636, 2082.032226, 10.820312, 181.575714},
{31 ,"~w~STREET THUG" ,TEAM_CIVILIAN ,SKILL_NONE ,7 ,2024.858032, 1545.406616, 10.820312, 274.217559 },
{32 ,"~w~BUSINESS WOMAN" ,TEAM_CIVILIAN ,SKILL_NONE ,9 ,2024.858032, 1545.406616, 10.820312, 274.217559 },
{33 ,"~w~RAPPING GRANDMA" ,TEAM_CIVILIAN ,SKILL_NONE ,10 ,2024.858032, 1545.406616, 10.820312, 274.217559 },
{34 ,"~w~GOLD DIGGER" ,TEAM_CIVILIAN ,SKILL_NONE ,12 ,2024.858032, 1545.406616, 10.820312, 274.217559 }
};
OnGameModeInit:
PHP Code:
for (new i = 0; i < sizeof(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,0, 0,0, 0,0);
}
PHP Code:
if (PlayerInfo[playerid][pRegistered] == 0 && PlayerInfo[playerid][pLogged] == 0)
{
format(string, sizeof(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];
}