Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerRequestClass(playerid, classid)
- {
- AddPlayerClassEx(1, 3, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 6, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 17, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 19, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 21, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 23, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 28, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 29, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 37, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 46, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 49, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 91, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 138, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 140, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(1, 233, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 300, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 301, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 302, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 306, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 307, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 309, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 310, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 283, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- AddPlayerClassEx(2, 288, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- SetPlayerInterior(playerid,5);
- SetPlayerPos(playerid,1275.7145,-790.4781,1089.9375);
- SetPlayerCameraPos(playerid,1277.1993,-793.9561,1089.9375);
- SetPlayerCameraLookAt(playerid,1275.7145,-790.4781,1089.9375);
- ApplyAnimation(playerid, "DANCING", "DAN_Left_A", 2.1, 1, 1, 0, 1, 1, 1);
- SetPlayerFacingAngle(playerid,270.5306);
- if(PlayerInfo[playerid][pJailed] == 1)
- {
- SetTimerEx("Spawn", 30, false, "i", playerid);
- return 1;
- }
- if(PlayerInfo[playerid][FracID] !=0)
- {
- new frak = PlayerInfo[playerid][FracID];
- if(frak == 3)
- {
- AddPlayerClassEx(3, 285, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- }
- if(frak == 4)
- {
- AddPlayerClassEx(4, 287, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
- }
- }
- new string[128];
- new team = GetPlayerTeam(playerid);
- if (team == 1)
- {
- format(string, sizeof(string), "~y~> ~p~Civilian ~y~<");
- GameTextForPlayer(playerid,string,3500,6);
- }
- else if (team == 2)
- {
- format(string, sizeof(string), "~b~> ~p~Cops ~b~<");
- GameTextForPlayer(playerid,string,3500,6);
- }
- else if (team == 3)
- {
- format(string, sizeof(string), "~b~> ~p~SWAT ~b~<");
- GameTextForPlayer(playerid,string,3500,6);
- }
- else if (team == 4)
- {
- format(string, sizeof(string), "~b~> ~p~ARMY ~b~<");
- GameTextForPlayer(playerid,string,3500,6);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement