SA-MP Forums Archive
How to? Rep+ HELP! Quick! - 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: How to? Rep+ HELP! Quick! (/showthread.php?tid=326200)



How to? Rep+ HELP! Quick! - petrolhead - 16.03.2012

hi.
U know when u join any server and there is skin selector ? And there is a view of desert or bar interior etc. When u /kill its same too.
What line in gm is that to i change the view when u join server and class select?
Thx


Re: How to? Rep+ HELP! Quick! - GNGification - 16.03.2012

public OnPlayerClassSelection


Re: How to? Rep+ HELP! Quick! - petrolhead - 16.03.2012

will this change the view of skin select when player joins server?


Re: How to? Rep+ HELP! Quick! - GNGification - 16.03.2012

You can use this, but you maybe need to change coordinates to whatever you want

pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
          SetPlayerPos(playerid,1810.5295,-2103.0408,13.5469);
          SetPlayerCameraPos(playerid,1814.3398,-2100.5222,13.5469);
          SetPlayerCameraLookAt(playerid,1810.5295,-2103.0408,13.5469);
          SetPlayerFacingAngle(playerid,300.0);
          return 1;
}