SA-MP Forums Archive
OnPlayerRequestClass - 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: OnPlayerRequestClass (/showthread.php?tid=446201)



OnPlayerRequestClass - Tellop - 24.06.2013

How can I make a different onplayerrequestclass?


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



Re: OnPlayerRequestClass - BpVanshVk - 24.06.2013

Yes, you can.


Re: OnPlayerRequestClass - Tellop - 24.06.2013

I asked how I could make one, I know that I can make one..


Re: OnPlayerRequestClass - _Khaled_ - 24.06.2013

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;
}



Re: OnPlayerRequestClass - Tellop - 24.06.2013

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?


Re: OnPlayerRequestClass - HaiderABbas - 24.06.2013

u wanna change the location where the request class comes ?

Go in game /save

Go documents > gta-samp > SAMP > SavedPostion

and change it


Re: OnPlayerRequestClass - _Khaled_ - 24.06.2013

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


Re: OnPlayerRequestClass - DeMoX - 24.06.2013

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


Re: OnPlayerRequestClass - Tellop - 24.06.2013

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);


Re: OnPlayerRequestClass - _Khaled_ - 24.06.2013

just try the code I sent?