Problem..
#1

Okay, I Got Some Classes in My script.
and at the moment i can only put two :S
i don't know why, but when i try adding more they get overlapped with the other classes
which i dont want.. just say i wanted to add 5 skins to the CIA class.. how would i do it
without it overlapping the other classes?

Here are my skins.


pawn Код:
//============================[Classes/Teams]====================================//
   
    AddPlayerClass(281,-1616.2939,684.7679,7.1875, 0, 0, 0, 0, 0, 0, 0);//SFPD
    AddPlayerClass(282,-1616.2939,684.7679,7.1875, 0, 0, 0, 0, 0, 0, 0);//SFPD

    AddPlayerClass(287, -1333.3356,493.3738,11.1953, 0, 0, 0, 0, 0, 0, 0);//Army
    AddPlayerClass(121, -1333.3356,493.3738,11.1953, 0, 0, 0, 0, 0, 0, 0);// Army

    AddPlayerClass(181,-2022.8262,157.3723,28.8359, 0, 6, 1, 27, 250, 30, 250);// Civilians
    AddPlayerClass(224,-2022.8262,157.3723,28.8359, 0, 5, 500, 27, 250, 30, 250);// Civilians
 
    AddPlayerClass(124,-2029.72, -113.33, 1035.17,38.4730, 15, 500, 28, 450, 37, 400);//Criminals
    AddPlayerClass(126,-2029.72, -113.33, 1035.17,38.4730, 15, 500, 28, 450, 37, 400);//Criminals
   
    AddPlayerClass(282,246.37, 72.31, 1003.64,38.4730, 15, 500, 28, 450, 37, 400);//CIA
    AddPlayerClass(283,246.37, 72.31, 1003.64,38.4730, 15, 500, 28, 450, 37, 400);//CIA
Reply
#2

Post OnPlayerRequestClass.
Reply
#3

Quote:
Originally Posted by GTAguillaume
Post OnPlayerRequestClass.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerClass(playerid, classid);
    switch(classid)
    {
      case 0,1:
    {
                GameTextForPlayer(playerid, "~n~~n~~n~~b~San Fierro~n~Police Department~n~ -Locked!-", 500, 3);
                SetPlayerInterior(playerid, 0);
              SetPlayerPos(playerid, -1608.96, 674.94, 7.18);
              SetPlayerFacingAngle(playerid, 181.08);
              SetPlayerCameraPos(playerid, -1609.20, 666.05, 9.85);
              SetPlayerCameraLookAt(playerid, -1609.11, 670.84, 8.39);
                ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
                IsRequestingSpawn[playerid] = 0;
                IsSpawned[playerid] = 0;
        }
        case 2,3:
      {
                GameTextForPlayer(playerid, "~n~~n~~n~~r~San Fierro ~n~Naval Army ~n~ -Locked!-", 500, 3);
                SetPlayerInterior(playerid, 0);
              SetPlayerPos(playerid, -1335.08, 484.53, 12.26);
              SetPlayerFacingAngle(playerid, 179.54);
              SetPlayerCameraPos(playerid, -1335.07, 479.84, 14.16);
              SetPlayerCameraLookAt(playerid, -1335.11, 484.53, 12.42);
                ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
                IsSpawned[playerid] = 0;
                IsRequestingArmySpawn[playerid] = 0;
               
        }
        case 4,5:
      {
                GameTextForPlayer(playerid, "~n~~n~~n~~b~Civilians", 500, 3);
                SetPlayerInterior(playerid, 0);
              SetPlayerPos(playerid, -2026.43, 156.59, 29.03);
              SetPlayerFacingAngle(playerid, 271.43);
              SetPlayerCameraPos(playerid, -2018.34, 156.83, 30.09);
              SetPlayerCameraLookAt(playerid, -2023.32, 156.70, 29.66);
    }
    case 6,7:
      {
                GameTextForPlayer(playerid, "~n~~n~~n~~y~DO NOT CHOOSE! (Bugged)", 500, 3);
                SetPlayerInterior(playerid, 3);
              SetPlayerPos(playerid, -2029.72, -113.33, 1035.17);
              SetPlayerFacingAngle(playerid, 176.61);
              SetPlayerCameraPos(playerid, -2029.72, -117.59, 1037.61);
              SetPlayerCameraLookAt(playerid, -2029.71, -112.59, 1035.00);
              ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
    }
    case 8,9:
      {
                GameTextForPlayer(playerid, "~n~~n~~n~~b~CIA", 500, 3);
                SetPlayerInterior(playerid, 6);
              SetPlayerPos(playerid, 246.37, 72.31, 1003.64);
              SetPlayerFacingAngle(playerid, 177.47);
              SetPlayerCameraPos(playerid, 246.44, 67.63, 1005.64);
              SetPlayerCameraLookAt(playerid, 246.66, 72.63, 1003.64);
              IsRequestingCIASpawn[playerid] = 0;
    }
    }
    return 1;
}
Reply
#4

Show your SetPlayerClass function.
Reply
#5

Quote:
Originally Posted by MadeMan
Show your SetPlayerClass function.
pawn Код:
SetPlayerClass(playerid, classid)
{
    if(classid == 0) gTeam[playerid] = TEAM_SFPD;
    else if(classid == 1) gTeam[playerid] = TEAM_SFPD;
    else if(classid == 2) gTeam[playerid] = TEAM_ARMY;
    else if(classid == 3) gTeam[playerid] = TEAM_ARMY;
    else if(classid == 4) gTeam[playerid] = TEAM_CIVILIAN;
    else if(classid == 5) gTeam[playerid] = TEAM_CIVILIAN;
    else if(classid == 6) gTeam[playerid] = TEAM_CRIMINALS;
    else if(classid == 7) gTeam[playerid] = TEAM_CRIMINALS;
    else if(classid == 8) gTeam[playerid] = TEAM_CIA;
    else if(classid == 9) gTeam[playerid] = TEAM_CIA;
}
Reply
#6

**BUMPING**
Reply
#7

**BUMPING AGAIN!**
Reply
#8

-.-' Bumping Again!
Reply
#9

Do I Really Have To Keep Bumping This? It's getting Annoying..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)