what is the problem?
#6

pawn Код:
#include <a_samp>
new gTeam[MAX_PLAYERS];

#define GROVE 1
#define BALLAS 2
#define AZTECAS 3
#define VAGOS 4
#define YAKUZA 5
#define BIKER 6



forward SetPlayerTeamFromClass(playerid, classid);


#define GROVE_COLOUR 0x00820FAA
#define BALLAS_COLOUR 0xC2A2DAAA
#define AZTECAS_COLOUR 0x01FCFFC8
#define VAGOS_COLOUR 0xFFFF00AA
#define VAGOS_COLOUR 0xFFFF00AA
#define BIKER_COLOUR 0xAFAFAFAA
#define YAKUZA_COLOUR 0xAA3333AA

public OnGameModeInit()
{
    SetGameModeText("Gangwar");
    AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//GROVE
    AddPlayerClass(106, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//GROVE
    AddPlayerClass(107, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//GROVE
    AddPlayerClass(270, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//GROVE
    AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BALLAS
    AddPlayerClass(103, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BALLAS
    AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BALLAS
    AddPlayerClass(296, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BALLAS
    AddPlayerClass(108, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//VAGOS
    AddPlayerClass(109, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//VAGOS
    AddPlayerClass(110, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//VAGOS
    AddPlayerClass(30, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//VAGOS
    AddPlayerClass(114, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//AZTECAS
    AddPlayerClass(115, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//AZTECAS
    AddPlayerClass(116, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//AZTECAS
    AddPlayerClass(292, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//AZTECAS
    AddPlayerClass(100, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BIKER
    AddPlayerClass(247, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BIKER
    AddPlayerClass(248, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BIKER
    AddPlayerClass(181, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//BIKER
    AddPlayerClass(118, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//YAKUZA
    AddPlayerClass(120, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//YAKUZA
    AddPlayerClass(228, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//YAKUZA
    AddPlayerClass(294, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);//YAKUZA
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    if(classid == 0)
    {
        gTeam[playerid] = LawEnforcment1;
        GameTextForPlayer(playerid,"~b~Police Officer",3000,5); // This will show up an Text , when you select your class
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0x0000BBAA); // Teamcolor
    }
    if(classid == 1)
    {
        gTeam[playerid] = LawEnforcment2;
        GameTextForPlayer(playerid,"~p~San Andreas Army",3000,5); // This will show up an Text , when you select your class
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0x8B008BAA); // Teamcolor
    }
    if(classid == 2)
    {
        gTeam[playerid] = LawEnforcment3;
        GameTextForPlayer(playerid,"~b~Police Officer",3000,5); // This will show up an Text , when you select your class
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0x0000BBAA); // Teamcolor
    }
}
Edit this to your liking.
Reply


Messages In This Thread
what is the problem? - by Er@x3r - 11.07.2013, 20:11
Respuesta: what is the problem? - by Parka - 11.07.2013, 20:19
Re: what is the problem? - by Rohlik - 11.07.2013, 20:20
Re: what is the problem? - by JimmyCh - 11.07.2013, 20:24
Re: what is the problem? - by Er@x3r - 11.07.2013, 20:24
Re: what is the problem? - by Darnell - 11.07.2013, 20:28
Re: what is the problem? - by Konstantinos - 11.07.2013, 20:29
Re: what is the problem? - by thefatshizms - 11.07.2013, 20:29
Re: what is the problem? - by Rohlik - 11.07.2013, 20:30
Re: what is the problem? - by JimmyCh - 11.07.2013, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)