SA-MP Forums Archive
how to make advanced character selection!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to make advanced character selection!!! (/showthread.php?tid=378307)



how to make advanced character selection!!! - xMaGmOtAnEtHx - 17.09.2012

hello.
i was wondering how to make the character selection camera a little more advanced. like how to make it for example
1 skin in grove at grove street and another is balla in balla turf i want it to make it look like the camera chases to ballas turf not an instant character selection switch im talking about the camera goes to the location! please help!


Re: how to make advanced character selection!!! - clarencecuzz - 17.09.2012

Example:
pawn Code:
public OnPlayerRequestClass(playerid, classid) //When a player selects a class
{
    if(classid == 0) //Let's say our first skin is a 'Grove Street' skin
    {
        SetPlayerPos(playerid, X, Y, Z); //We replace X, Y and Z with our Grove Street coordinates
        SetPlayerFacingAngle(playerid, 0); //Can change to any angle you want, not necessary, but recommended for accuracy
        SetPlayerCameraPos(playerid, X, Y, Z); //Replace X, Y and Z where you want the player to be looking from. These will also be in or near Grove Street, player must be visible from this point.
        SetPlayerCameraLookAt(playerid, X, Y, Z); //X Y and Z are taken from our SetPlayerPos coordinates, so the camera is looking AT the player's position.
        GameTextForPlayer(playerid, "~g~Grove Street", 5000, 5); //Optional, but explains what the class is.
    }
    else if(classid == 1) //Ballas team for example
    {
        SetPlayerPos(playerid, X, Y, Z); //Position set to a Ballas area.
        SetPlayerFacingAngle...
        SetPlayerCameraPos(... //Near the player position
        SetPlayerCameraLookAt(.... //Look at the player
        GameTextForPlayer(....
    }
    return 1;
}



Re: how to make advanced character selection!!! - xMaGmOtAnEtHx - 17.09.2012

Ohhhh. I see ill test out soon! Thanks!


Re: how to make advanced character selection!!! - xMaGmOtAnEtHx - 17.09.2012

Actually this is the same as the regular one. Is it possible to make the camera like chase to the next selection, cuz ive seen it in a ton of servers and it looked so epic!!!
Here is my real script
Quote:

public OnPlayerRequestClass( playerid, classid )
{
SetPlayerClass( playerid, classid );
SetPlayerColor( playerid, COLOR_INACTIVE );
PlayerPlaySound( playerid, 1068, 0.0, 0.0, 0.0 );

switch(classid)
{
case 0..1:
{
SetPlayerPos(playerid, 1810.5295,-2103.0408,13.5469);
SetPlayerCameraPos(playerid, 1814.3398,-2100.5222,13.5469);
SetPlayerCameraLookAt(playerid, 1810.5295,-2103.0408,13.5469);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Azteca", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1);
}
case 2..3:
{
SetPlayerPos(playerid, 2654.5081,-1063.5448,69.5937);
SetPlayerCameraPos(playerid, 2658.3940,-1060.7126,69.5209);
SetPlayerCameraLookAt(playerid, 2654.5081,-1063.5448,69.5937);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 4..5:
{
SetPlayerPos(playerid, 1979.8929,-1143.1704,25.985;
SetPlayerCameraPos(playerid, 1975.8948,-1145.9689,25.9895);
SetPlayerCameraLookAt(playerid, 1979.8929,-1143.1704,25.985;
SetPlayerFacingAngle(playerid, 120.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Balla", 3000, 3);
ApplyAnimation(playerid,"GHANDS", "gsign2LH",4.0,1,1,1,1,1);
}
case 6..7:
{
SetPlayerPos(playerid, 2498.2249,-1644.6326,18.8751);
SetPlayerCameraPos(playerid, 2498.2676,-1640.1935,18.6116);
SetPlayerCameraLookAt(playerid, 2498.2249,-1644.6326,18.8751);
SetPlayerFacingAngle(playerid, 0.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Orange Grove Families", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1);
}
case 8..9:
{
SetPlayerPos(playerid, 2785.7817,-1956.1940,20.4537);
SetPlayerCameraPos(playerid, 2791.5693,-1956.3384,21.3124);
SetPlayerCameraLookAt(playerid, 2785.7817,-1956.1940,20.4537);
SetPlayerFacingAngle(playerid, 270.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Hoodlum", 3000, 3);
ApplyAnimation(playerid,"DEALER", "DEALER_IDLE",4.0,1,1,1,1,1);
}
case 10..11:
{
SetPlayerPos(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerCameraPos(playerid, -2445.4675,-83.2549,34.2572);
SetPlayerCameraLookAt(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerFacingAngle(playerid, 180.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Rifa", 3000, 3);
ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1);
}
case 12..13:
{
SetPlayerPos(playerid, -2196.6521,608.2758,35.1641);
SetPlayerCameraPos(playerid, -2199.9006,606.6349,35.1641);
SetPlayerCameraLookAt(playerid, -2196.6521,608.2758,35.1641);
SetPlayerFacingAngle(playerid, 110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Triad", 3000, 3);
ApplyAnimation(playerid,"GANGS", "Invite_Yes",4.0,1,1,1,1,1);
}
case 14..15:
{
SetPlayerPos(playerid, -1652.6858,1408.6296,9.8047);
SetPlayerCameraPos(playerid, -1651.6547,1412.3341,9.8047);
SetPlayerCameraLookAt(playerid, -1652.6858,1408.6296,9.8047);
SetPlayerFacingAngle(playerid, -10.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Da Nang", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1);
}
case 16..17:
{
SetPlayerPos(playerid, -2082.2502,230.6593,35.538;
SetPlayerCameraPos(playerid, -2085.1948,228.5887,35.6940);
SetPlayerCameraLookAt(playerid, -2082.2502,230.6593,35.538;
SetPlayerFacingAngle(playerid, 130.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Worker", 3000, 3);
ApplyAnimation(playerid,"COP_AMBIENT", "Coplook_think",4.0,1,1,1,1,1);
}
case 18..19:
{
SetPlayerPos(playerid, -1627.8352,674.1260,7.1875);
SetPlayerCameraPos(playerid, -1631.2100,676.1075,7.1875);
SetPlayerCameraLookAt(playerid, -1627.8352,674.1260,7.1875);
SetPlayerFacingAngle(playerid, 60.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Cop", 3000, 3);
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
}
case 20..21:
{
SetPlayerPos(playerid,1289.1920,1313.4346,17.3299) ;
SetPlayerCameraPos(playerid,1287.9818,1315.8494,17 .6311);
SetPlayerCameraLookAt(playerid,1289.1920,1313.4346 ,17.3299);
SetPlayerFacingAngle(playerid,30.0);
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Guard", 3000, 3 );
ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1);
}
case 22..23:
{
SetPlayerPos(playerid,2430.9939,2047.5365,10.8203) ;
SetPlayerCameraPos(playerid,2428.7488,2043.9611,10 .8203);
SetPlayerCameraLookAt(playerid,2430.9939,2047.5365 ,10.8203);
SetPlayerFacingAngle( playerid, 140.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Biker", 3000, 3 );
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 24..25:
{
SetPlayerPos(playerid,2080.5840,1682.7871,10.8203) ;
SetPlayerCameraPos(playerid,2077.9380,1684.2322,10 .8203);
SetPlayerCameraLookAt(playerid,2080.5840,1682.7871 ,10.8203);
SetPlayerFacingAngle(playerid,55.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mafia", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1);
}
case 26..27:
{
SetPlayerPos(playerid,2126.6423,1144.6746,13.5095) ;
SetPlayerCameraPos(playerid,2124.0168,1146.0432,13 .5092);
SetPlayerCameraLookAt(playerid,2126.6423,1144.6746 ,13.5095);
SetPlayerFacingAngle( playerid, 50.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Elvis Fanclub", 3000, 3 );
ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1);
}
case 28..29:
{
SetPlayerPos(playerid,1597.1831,2312.2361,18.8222) ;
SetPlayerCameraPos(playerid,1594.8032,2311.0300,18 .8222);
SetPlayerCameraLookAt(playerid,1597.1831,2312.2361 ,18.8222);
SetPlayerFacingAngle(playerid,110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mechanic", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1);
}
}
return 1;
}

please help!


Re: how to make advanced character selection!!! - clarencecuzz - 17.09.2012

I believe you are after the function InterpolateCameraPos

https://sampwiki.blast.hk/wiki/InterpolateCameraPos

Your code should look something like this:
pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
InterpolateCameraPos(playerid, x, y, z, 100.33, 459.3, 19.1, time, CAMERA_MOVE);
SetPlayerCameraLookAt(playerid, 100, 450, 19);
//Code continues...
Replace 'time' in the InterpolateCameraPos with the amount of time you want it to take for the camera to get to the position. The floats in the InterpolateCameraPos and SetPlayerCameraLookAt functions are just examples, and are not recommended for use in your script.


Re: how to make advanced character selection!!! - clarencecuzz - 17.09.2012

Here is your full code:
pawn Code:
public OnPlayerRequestClass( playerid, classid )
{
    SetPlayerClass( playerid, classid );
    SetPlayerColor( playerid, COLOR_INACTIVE );
    PlayerPlaySound( playerid, 1068, 0.0, 0.0, 0.0 );
    switch(classid)
    {
        case 0..1:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, 1810.5295,-2103.0408,13.5469);
            SetPlayerFacingAngle(playerid, 300.0);
            InterpolateCameraPos(playerid, x, y, z, 1814.3398, -2100.522, 13.5469, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, 1810.5295,-2103.0408,13.5469);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Azteca", 3000, 3);
            ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1);
        }
        case 2..3:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, 2654.5081,-1063.5448,69.5937);
            SetPlayerFacingAngle(playerid, 300.0);
            InterpolateCameraPos(playerid, x, y, z, 2658.3940,-1060.7126,69.5209, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, 2654.5081,-1063.5448,69.5937);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
            ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
        }
        case 4..5:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, 1979.8929,-1143.1704,25.985);
            SetPlayerFacingAngle(playerid, 120.0);
            InterpolateCameraPos(playerid, x, y, z, 1975.8948,-1145.9689,25.9895, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, 1979.8929,-1143.1704,25.985);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Balla", 3000, 3);
            ApplyAnimation(playerid,"GHANDS", "gsign2LH",4.0,1,1,1,1,1);
        }
        case 6..7:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, 2498.2249,-1644.6326,18.8751);
            SetPlayerFacingAngle(playerid, 0.0);
            InterpolateCameraPos(playerid, x, y, z, 2498.2676,-1640.1935,18.6116, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, 2498.2249,-1644.6326,18.8751);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Orange Grove Families", 3000, 3);
            ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1);
        }
        case 8..9:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, 2785.7817,-1956.1940,20.4537);
            SetPlayerFacingAngle(playerid, 270.0);
            InterpolateCameraPos(playerid, x, y, z, 2791.5693,-1956.3384,21.3124, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, 2785.7817,-1956.1940,20.4537);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Hoodlum", 3000, 3);
            ApplyAnimation(playerid,"DEALER", "DEALER_IDLE",4.0,1,1,1,1,1);
        }
        case 10..11:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, -2446.6492,-78.0747,34.1809);
            SetPlayerFacingAngle(playerid, 180.0);
            InterpolateCameraPos(playerid, x, y, z, -2445.4675,-83.2549,34.2572, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, -2446.6492,-78.0747,34.1809);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Rifa", 3000, 3);
            ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1);
        }
        case 12..13:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, -2196.6521,608.2758,35.1641);
            SetPlayerFacingAngle(playerid, 110.0);
            InterpolateCameraPos(playerid, x, y, z, -2199.9006,606.6349,35.1641, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, -2196.6521,608.2758,35.1641);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Triad", 3000, 3);
            ApplyAnimation(playerid,"GANGS", "Invite_Yes",4.0,1,1,1,1,1);
        }
        case 14..15:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, -1652.6858,1408.6296,9.8047);
            SetPlayerFacingAngle(playerid, -10.0);
            InterpolateCameraPos(playerid, x, y, z, -1651.6547,1412.3341,9.8047, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, -1652.6858,1408.6296,9.8047);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Da Nang", 3000, 3);
            ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1);
        }
        case 16..17:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, -2082.2502,230.6593,35.538);
            SetPlayerFacingAngle(playerid, 130.0);
            InterpolateCameraPos(playerid, x, y, z, -2085.1948,228.5887,35.6940, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, -2082.2502,230.6593,35.538);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Worker", 3000, 3);
            ApplyAnimation(playerid,"COP_AMBIENT", "Coplook_think",4.0,1,1,1,1,1);
        }
        case 18..19:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid, -1627.8352,674.1260,7.1875);
            SetPlayerFacingAngle(playerid, 60.0);
            InterpolateCameraPos(playerid, x, y, z, -1631.2100,676.1075,7.1875, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid, -1627.8352,674.1260,7.1875);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Cop", 3000, 3);
            ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
        }
        case 20..21:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid,1289.1920,1313.4346,17.3299) ;
            SetPlayerFacingAngle(playerid,30.0);
            InterpolateCameraPos(playerid, x, y, z,1287.9818,1315.8494,17.6311, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid,1289.1920,1313.4346 ,17.3299);
            GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Guard", 3000, 3 );
            ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1);
        }
        case 22..23:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid,2430.9939,2047.5365,10.8203) ;
            SetPlayerFacingAngle( playerid, 140.0 );
            InterpolateCameraPos(playerid, x, y, z,2428.7488,2043.9611,10.8203, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid,2430.9939,2047.5365 ,10.8203);
            GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Biker", 3000, 3 );
            ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
        }
        case 24..25:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid,2080.5840,1682.7871,10.8203) ;
            SetPlayerFacingAngle(playerid,55.0);
            InterpolateCameraPos(playerid, x, y, z,2077.9380,1684.2322,10.8203, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid,2080.5840,1682.7871 ,10.8203);
            SetPlayerFacingAngle(playerid,55.0);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mafia", 3000, 3);
            ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1);
        }
        case 26..27:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid,2126.6423,1144.6746,13.5095);
            SetPlayerFacingAngle( playerid, 50.0 );
            InterpolateCameraPos(playerid, x, y, z,2124.0168,1146.0432,13.5092, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid,2126.6423,1144.6746 ,13.5095);
            GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Elvis Fanclub", 3000, 3 );
            ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1);
        }
        case 28..29:
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            SetPlayerPos(playerid,1597.1831,2312.2361,18.8222);
            SetPlayerFacingAngle(playerid,110.0);
            InterpolateCameraPos(playerid, x, y, z,1594.8032,2311.0300,18.8222, 5000, CAMERA_MOVE);
            SetPlayerCameraLookAt(playerid,1597.1831,2312.2361 ,18.8222);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mechanic", 3000, 3);
            ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1);
        }
    }
    return 1;
}



Re: how to make advanced character selection!!! - xMaGmOtAnEtHx - 17.09.2012

THANK YOU!!! but the characters are not showing up and selection is just around the mall spawn


Re: how to make advanced character selection!!! - xMaGmOtAnEtHx - 17.09.2012

i think i know how to fix this!!! thanks for the help


Re: how to make advanced character selection!!! - xMaGmOtAnEtHx - 18.09.2012

*FIXED*!!!
HERES THE NEW CODE!!!
Quote:

public OnPlayerRequestClass( playerid, classid )
{
SetPlayerClass( playerid, classid );
SetPlayerColor( playerid, COLOR_INACTIVE );
PlayerPlaySound( playerid, 1068, 0.0, 0.0, 0.0 );

switch(classid)
{
case 0:
{
SetPlayerPos(playerid, 1810.5295,-2103.0408,13.5469);
SetPlayerCameraPos(playerid, 1814.3398,-2100.5222,13.5469);
SetPlayerCameraLookAt(playerid, 1810.5295,-2103.0408,13.5469);
InterpolateCameraPos(playerid, 1594.8032,2311.0300,18.8222, 1814.3398,-2100.5222,13.5469, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Azteca", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 1:
{
SetPlayerPos(playerid, 1810.5295,-2103.0408,13.5469);
SetPlayerCameraPos(playerid, 1814.3398,-2100.5222,13.5469);
SetPlayerCameraLookAt(playerid, 1810.5295,-2103.0408,13.5469);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Azteca", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 2:
{
SetPlayerPos(playerid, 2654.5081,-1063.5448,69.5937);
SetPlayerCameraPos(playerid, 2658.3940,-1060.7126,69.5209);
SetPlayerCameraLookAt(playerid, 2654.5081,-1063.5448,69.5937);
InterpolateCameraPos(playerid, 1814.3398,-2100.5222,13.5469, 2658.3940,-1060.7126,69.5209, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 3:
{
SetPlayerPos(playerid, 2654.5081,-1063.5448,69.5937);
SetPlayerCameraPos(playerid, 2658.3940,-1060.7126,69.5209);
SetPlayerCameraLookAt(playerid, 2654.5081,-1063.5448,69.5937);
SetPlayerFacingAngle(playerid, 300.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 4:
{
SetPlayerPos(playerid, 1979.8929,-1143.1704,25.985;
SetPlayerCameraPos(playerid, 1975.8948,-1145.9689,25.9895);
SetPlayerCameraLookAt(playerid, 1979.8929,-1143.1704,25.985;
InterpolateCameraPos(playerid, 2658.3940,-1060.7126,69.5209, 1975.8948,-1145.9689,25.9895, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 120.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Balla", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 5:
{
SetPlayerPos(playerid, 1979.8929,-1143.1704,25.985;
SetPlayerCameraPos(playerid, 1975.8948,-1145.9689,25.9895);
SetPlayerCameraLookAt(playerid, 1979.8929,-1143.1704,25.985;
SetPlayerFacingAngle(playerid, 120.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Balla", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 6:
{
SetPlayerPos(playerid, 2498.2249,-1644.6326,18.8751);
SetPlayerCameraPos(playerid, 2498.2676,-1640.1935,18.6116);
SetPlayerCameraLookAt(playerid, 2498.2249,-1644.6326,18.8751);
InterpolateCameraPos(playerid, 1975.8948,-1145.9689,25.9895, 2498.2676,-1640.1935,18.6116, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 0.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Orange Grove Families", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 7:
{
SetPlayerPos(playerid, 2498.2249,-1644.6326,18.8751);
SetPlayerCameraPos(playerid, 2498.2676,-1640.1935,18.6116);
SetPlayerCameraLookAt(playerid, 2498.2249,-1644.6326,18.8751);
SetPlayerFacingAngle(playerid, 0.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Orange Grove Families", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 8:
{
SetPlayerPos(playerid, 2785.7817,-1956.1940,20.4537);
SetPlayerCameraPos(playerid, 2791.5693,-1956.3384,21.3124);
SetPlayerCameraLookAt(playerid, 2785.7817,-1956.1940,20.4537);
InterpolateCameraPos(playerid, 2498.2676,-1640.1935,18.6116, 2791.5693,-1956.3384,21.3124, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 270.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Hoodlum", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 9:
{
SetPlayerPos(playerid, 2785.7817,-1956.1940,20.4537);
SetPlayerCameraPos(playerid, 2791.5693,-1956.3384,21.3124);
SetPlayerCameraLookAt(playerid, 2785.7817,-1956.1940,20.4537);
SetPlayerFacingAngle(playerid, 270.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Hoodlum", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 10:
{
SetPlayerPos(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerCameraPos(playerid, -2445.4675,-83.2549,34.2572);
SetPlayerCameraLookAt(playerid, -2446.6492,-78.0747,34.1809);
InterpolateCameraPos(playerid, 2791.5693,-1956.3384,21.3124, -2445.4675,-83.2549,34.2572, 2500, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 180.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Rifa", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 11:
{
SetPlayerPos(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerCameraPos(playerid, -2445.4675,-83.2549,34.2572);
SetPlayerCameraLookAt(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerFacingAngle(playerid, 180.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Rifa", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 12:
{
SetPlayerPos(playerid, -2196.6521,608.2758,35.1641);
SetPlayerCameraPos(playerid, -2199.9006,606.6349,35.1641);
SetPlayerCameraLookAt(playerid, -2196.6521,608.2758,35.1641);
InterpolateCameraPos(playerid, -2445.4675,-83.2549,34.2572, -2199.9006,606.6349,35.1641, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Triad", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 13:
{
SetPlayerPos(playerid, -2196.6521,608.2758,35.1641);
SetPlayerCameraPos(playerid, -2199.9006,606.6349,35.1641);
SetPlayerCameraLookAt(playerid, -2196.6521,608.2758,35.1641);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Triad", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 14:
{
SetPlayerPos(playerid, -1652.6858,1408.6296,9.8047);
SetPlayerCameraPos(playerid, -1651.6547,1412.3341,9.8047);
SetPlayerCameraLookAt(playerid, -1652.6858,1408.6296,9.8047);
InterpolateCameraPos(playerid, -2199.9006,606.6349,35.1641, -1651.6547,1412.3341,9.8047, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, -10.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Da Nang", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 15:
{
SetPlayerPos(playerid, -1652.6858,1408.6296,9.8047);
SetPlayerCameraPos(playerid, -1651.6547,1412.3341,9.8047);
SetPlayerCameraLookAt(playerid, -1652.6858,1408.6296,9.8047);
SetPlayerFacingAngle(playerid, -10.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Da Nang", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 16:
{
SetPlayerPos(playerid, -2082.2502,230.6593,35.538;
SetPlayerCameraPos(playerid, -2085.1948,228.5887,35.6940);
SetPlayerCameraLookAt(playerid, -2082.2502,230.6593,35.538;
InterpolateCameraPos(playerid, -1651.6547,1412.3341,9.8047, -2085.1948,228.5887,35.6940, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 130.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Worker", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 17:
{
SetPlayerPos(playerid, -2082.2502,230.6593,35.538;
SetPlayerCameraPos(playerid, -2085.1948,228.5887,35.6940);
SetPlayerCameraLookAt(playerid, -2082.2502,230.6593,35.538;
SetPlayerFacingAngle(playerid, 130.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Worker", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 18:
{
SetPlayerPos(playerid, -1627.8352,674.1260,7.1875);
SetPlayerCameraPos(playerid, -1631.2100,676.1075,7.1875);
SetPlayerCameraLookAt(playerid, -1627.8352,674.1260,7.1875);
InterpolateCameraPos(playerid, -2085.1948,228.5887,35.6940, -1631.2100,676.1075,7.1875, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid, 60.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Cop", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 19:
{
SetPlayerPos(playerid, -1627.8352,674.1260,7.1875);
SetPlayerCameraPos(playerid, -1631.2100,676.1075,7.1875);
SetPlayerCameraLookAt(playerid, -1627.8352,674.1260,7.1875);
SetPlayerFacingAngle(playerid, 60.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Cop", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 20:
{
SetPlayerPos(playerid,1289.1920,1313.4346,17.3299) ;
SetPlayerCameraPos(playerid,1287.9818,1315.8494,17 .6311);
SetPlayerCameraLookAt(playerid,1289.1920,1313.4346 ,17.3299);
InterpolateCameraPos(playerid, -1631.2100,676.1075,7.1875, 1287.9818,1315.8494,17.6311, 2500, CAMERA_MOVE);
SetPlayerFacingAngle(playerid,30.0);
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Guard", 3000, 3 );
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 21:
{
SetPlayerPos(playerid,1289.1920,1313.4346,17.3299) ;
SetPlayerCameraPos(playerid,1287.9818,1315.8494,17 .6311);
SetPlayerCameraLookAt(playerid,1289.1920,1313.4346 ,17.3299);
SetPlayerFacingAngle(playerid,30.0);
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Guard", 3000, 3 );
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 22:
{
SetPlayerPos(playerid,2430.9939,2047.5365,10.8203) ;
SetPlayerCameraPos(playerid,2428.7488,2043.9611,10 .8203);
SetPlayerCameraLookAt(playerid,2430.9939,2047.5365 ,10.8203);
InterpolateCameraPos(playerid, 1287.9818,1315.8494,17.6311, 2428.7488,2043.9611,10.8203, 2000, CAMERA_MOVE);
SetPlayerFacingAngle( playerid, 140.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Biker", 3000, 3 );
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 23:
{
SetPlayerPos(playerid,2430.9939,2047.5365,10.8203) ;
SetPlayerCameraPos(playerid,2428.7488,2043.9611,10 .8203);
SetPlayerCameraLookAt(playerid,2430.9939,2047.5365 ,10.8203);
SetPlayerFacingAngle( playerid, 140.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Biker", 3000, 3 );
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 24:
{
SetPlayerPos(playerid,2080.5840,1682.7871,10.8203) ;
SetPlayerCameraPos(playerid,2077.9380,1684.2322,10 .8203);
SetPlayerCameraLookAt(playerid,2080.5840,1682.7871 ,10.8203);
InterpolateCameraPos(playerid, 2428.7488,2043.9611,10.8203, 2077.9380,1684.2322,10.8203, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid,55.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mafia", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 25:
{
SetPlayerPos(playerid,2080.5840,1682.7871,10.8203) ;
SetPlayerCameraPos(playerid,2077.9380,1684.2322,10 .8203);
SetPlayerCameraLookAt(playerid,2080.5840,1682.7871 ,10.8203);
SetPlayerFacingAngle(playerid,55.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mafia", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 26:
{
SetPlayerPos(playerid,2126.6423,1144.6746,13.5095) ;
SetPlayerCameraPos(playerid,2124.0168,1146.0432,13 .5092);
SetPlayerCameraLookAt(playerid,2126.6423,1144.6746 ,13.5095);
InterpolateCameraPos(playerid, 2077.9380,1684.2322,10.8203, 2124.0168,1146.0432,13.5092, 2000, CAMERA_MOVE);
SetPlayerFacingAngle( playerid, 50.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Elvis Fanclub", 3000, 3 );
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 27:
{
SetPlayerPos(playerid,2126.6423,1144.6746,13.5095) ;
SetPlayerCameraPos(playerid,2124.0168,1146.0432,13 .5092);
SetPlayerCameraLookAt(playerid,2126.6423,1144.6746 ,13.5095);
SetPlayerFacingAngle( playerid, 50.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Elvis Fanclub", 3000, 3 );
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
case 28:
{
SetPlayerPos(playerid,1597.1831,2312.2361,18.8222) ;
SetPlayerCameraPos(playerid,1594.8032,2311.0300,18 .8222);
SetPlayerCameraLookAt(playerid,1597.1831,2312.2361 ,18.8222);
InterpolateCameraPos(playerid, 2124.0168,1146.0432,13.5092, 1594.8032,2311.0300,18.8222, 2000, CAMERA_MOVE);
SetPlayerFacingAngle(playerid,110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mechanic", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 29:
{
SetPlayerPos(playerid,1597.1831,2312.2361,18.8222) ;
SetPlayerCameraPos(playerid,1594.8032,2311.0300,18 .8222);
SetPlayerCameraLookAt(playerid,1597.1831,2312.2361 ,18.8222);
SetPlayerFacingAngle(playerid,110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Mechanic", 3000, 3);
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
}
}
return 1;
}

Also made it play Gangnam Style in Class Selection!!! Thanks for the help! My server might be big!