Scripting question
#1

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Role Play");
    AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(265, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
   
    return 1;
}
//===============================================================
public OnPlayerRequestClass(playerid, classid)
{
    Class[playerid] = classid;
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,944.99,-41.64,1001.77);
    SetPlayerFacingAngle(playerid,180.0);
    SetPlayerCameraPos(playerid,944.69,-47.54,1001.12);
    SetPlayerCameraLookAt(playerid,944.99,-41.64,1001.77);
    if(classid == 0)
    {
        SetPlayerTeamFromClass(playerid, classid);
        GameTextForPlayer(playerid,"~w~CIVILIAN",1000,4);
    }
    if(classid == 1)
    {
        SetPlayerTeamFromClass(playerid, classid);
        GameTextForPlayer(playerid,"~b~COP",1000,4);
    }
    if(classid == 2)
    {
        SetPlayerTeamFromClass(playerid, classid);
        GameTextForPlayer(playerid,"~g~ARMY",1000,4);
    }
    return 1;
}
//==================================================
I want to add multiple skins for every class, with the Game text showing, How?
Reply


Messages In This Thread
Scripting question - by _Khaled_ - 21.08.2012, 09:22
Re: Scripting question - by _Khaled_ - 21.08.2012, 11:11
Re: Scripting question - by Lordzy - 21.08.2012, 11:19
Re: Scripting question - by clarencecuzz - 21.08.2012, 11:36
Re: Scripting question - by _Khaled_ - 21.08.2012, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)