Changing the line of a text in a textdraw?
#8

try this, I havn't tested it at all, but see what I did to ballas? if that works then continue with the rest of the classes. You might not need to do the "switch" again.

PHP код:
switch(classid) {
   case 
0..2: {
                
SetPlayerTeamFromClass(playeridclassid);
                
SetPlayerPos(playerid1992.1263,-1175.7640,20.1479);
                
SetPlayerFacingAngleplayerid187.0574 );
                
SetPlayerCameraPos(playerid1991.3074,-1179.9628,20.0234);
                
SetPlayerCameraLookAt(playerid1992.1263,-1175.7640,20.1479);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~p~Ballas"30003);
                switch(
classid){
                case 
0:
                {
                    
TextDrawShowForPlayer(playeridBallasweapons1);
                }
                case 
1:
                {
                    
TextDrawHideForPlayer(playeridBallasweapons1);
                    
TextDrawShowForPlayer(playeridBallasweapons2);
                }
                
//ApplyAnimation(playerid,"SMOKING", "M_smk_tap",4.0,1,1,1,1,1);
            
} case 3..7: {
                
SetPlayerPos(playerid2486.7598,-1647.5186,14.0703);
                
SetPlayerFacingAngleplayerid187.5500 );
                
SetPlayerCameraPos(playerid2486.4346,-1646.0953-5,14.0703);
                
SetPlayerCameraLookAt(playerid2486.7598,-1647.5186,14.0703);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Grove Street Families"30003);
                
ApplyAnimation(playerid,"RAPPING""RAP_A_OUT ",4.0,1,1,1,1,1);
            } case 
8..10: {
                
SetPlayerPos(playerid2571.8352,-1091.2091,66.9639);
                
SetPlayerFacingAngle(playerid48.7203 );
                
SetPlayerCameraPos(playerid2570.1152,-1089.5372,66.8601);
                
SetPlayerCameraLookAt(playerid2571.8352,-1091.2091,66.9639);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Los Santos Vagos"30003);
                
//ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.1, 0, 1, 1, 1, 0, 1);
            
} case 11 .. 14: {
                
SetPlayerPos(playerid1793.2360,-2122.8770,13.5469);
                
SetPlayerFacingAngle(playerid8.3180 );
                
SetPlayerCameraPos(playerid1793.3226,-2119.6809,13.5543);
                
SetPlayerCameraLookAt(playerid1793.2360,-2122.8770,13.5469);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~~h~~h~~h~Los Varrios Aztecas"30003);
            } case 
15 .. 23: {
                
SetPlayerPos(playerid1546.7958,-1674.9213,13.5630);
                
SetPlayerFacingAngle(playerid80.8152 );
                
SetPlayerCameraPos(playerid1543.1853,-1675.1349,13.5560);
                
SetPlayerCameraLookAt(playerid1546.7958,-1674.9213,13.5630);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~~b~Police & Regime"30003);
            } 
/*case 24 ..26: {
                SetPlayerPos(playerid, 1515.7484,-2232.6597,13.5469);
                SetPlayerFacingAngle(playerid, 324.6881 );
                SetPlayerCameraPos(playerid, 1518.3016,-2228.4558,13.5469);
                SetPlayerCameraLookAt(playerid, 1515.7484,-2232.6597,13.5469);
                GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~~w~San Fierro Rifas", 3000, 3);
            }*/ 
case 24 .. 28: {
                
SetPlayerPos(playerid1220.1063,-1410.3185,13.1395);
                
SetPlayerFacingAngle(playerid354.7488);
                
SetPlayerCameraPos(playerid1220.2598,-1407.5026,13.1717);
                
SetPlayerCameraLookAt(playerid1220.1063,-1410.3185,13.1395);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~h~~h~~p~Loco ~g~Syndicato"30003);
                
gTeam[playerid] = LOCO;
            } case 
29 .. 31: { //here starts the dealer-team
                
SetPlayerPos(playerid2782.0300,-2008.1980,13.5547);
                
SetPlayerFacingAngle(playerid359.7808);
                
SetPlayerCameraPos(playerid2782.5583,-2004.1533,13.5471);
                
SetPlayerCameraLookAt(playerid2782.0300,-2008.1980,13.5547);
                
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~~y~Dealers"30003);
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)