SA-MP Forums Archive
OnPlayerRequest Help [+REP] - 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: OnPlayerRequest Help [+REP] (/showthread.php?tid=332517)



OnPlayerRequest Help [+REP] - James Coral - 08.04.2012

I have Problem with my gamemode, when i connect it works fine but it dont to enything!
Just stuck and it gives me SPAWN AND "<" and ">" Buttens

What i can too?

My OnPlayerRequestClass code:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    return 1;
}
and SetupPlayerForClassSelection:
pawn Код:
SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
    SetPlayerCameraPos(playerid,-1753.6849,892.0016,295.8750);
    SetPlayerCameraLookAt(playerid,-1753.6743,885.2703,295.8750);
    SetPlayerFacingAngle(playerid,0.6323);
}



Re: OnPlayerRequest Help [+REP] - Jonny5 - 08.04.2012

do you have AddPlayerClass anywhere?