OnPlayerRequestClass
#1

How can I make a different onplayerrequestclass?


pawn Код:
AddPlayerClass(117,2127.5300,2380.1204,10.8203,358.6881,0,0,0,0,0,0);
Reply
#2

Yes, you can.
Reply
#3

I asked how I could make one, I know that I can make one..
Reply
#4

Add the PlayerClasses under OnGameModeInIt
pawn Код:
OnGameModeInIt()
{
   AddPlayerClass(117,2127.5300,2380.1204,10.8203,358.6881,0,0,0,0,0,0); //Case 0
   AddPlayerClass(117,2127.5300,2380.1204,10.8203,358.6881,0,0,0,0,0,0); //Case 1
   AddPlayerClass(117,2127.5300,2380.1204,10.8203,358.6881,0,0,0,0,0,0); //Case 2
   //Other Codes
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
  switch (classid)
    {
        case 0, 1:
        {
            GameTextForPlayer(playerid, "~red~ TEST", 3000, 5);
        }
        case 2:
        {
            GameTextForPlayer(playerid, "~G~ TEST", 3000, 5);
        }
    }
    return 1;
}
Reply
#5

I wanna change the OnPlayerRequestClass..

pawn Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
Change this with the code I have, and can someone please explain how?
Reply
#6

u wanna change the location where the request class comes ?

Go in game /save

Go documents > gta-samp > SAMP > SavedPostion

and change it
Reply
#7

Whats the Interior?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,14); //The places Interior
    SetPlayerPos(playerid,1958.3783, 1343.1572, 15.3746);//Changed X,Y,Z axis.
    SetPlayerFacingAngle(playerid, 270.0); //The player facing angle.
    SetPlayerCameraPos(playerid,1958.3783, 1343.1572, 15.3746); //The Camera position
    SetPlayerCameraLookAt(playerid,1958.3783, 1343.1572, 15.3746); //The camera looks at PlayerPos
    switch (classid)
    {
        case 0, 1:
        {
            GameTextForPlayer(playerid, "~red~ TEST", 3000, 5);
        }
        case 2:
        {
            GameTextForPlayer(playerid, "~G~ TEST", 3000, 5);
        }
    }
    return 1;
}
here you go
Reply
#8

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
   SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

    switch (classid)
    {
        case 0, 1:
        {
            GameTextForPlayer(playerid, "~red~ TEST", 3000, 5);
        }
        case 2:
        {
            GameTextForPlayer(playerid, "~G~ TEST", 3000, 5);
        }
    }
    return 1;
}
P.S : Late
Reply
#9

I want to change the place after this code

AddPlayerClass(117,2127.5300,2380.1204,10.8203,358 .6881,0,0,0,0,0,0);
Reply
#10

just try the code I sent?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)