RequestClass Screen
#1

hey,

i want to change the screen position every 10 skins/classes in PlayerRequestClass.
plz give me the full code with example.

thank for helpers.

Reply
#2

Some one !?
Reply
#3

Change the player position and the camera position(and if you want to make it hard, the interiorid).

Search on wiki how to use each of those functions.

Do not forget the SetTimer or SetTimerEx.
Reply
#4

couldn't found it

please you can post it here ?!

Reply
#5

Код:
Something like this:

public OnPlayerRequestClass(playerid, classid) 
{
 	SetupPlayerForClassSelection(playerid);
	if(classid==0||classid==1||classid==2) { 
	SetPlayerTeam( playerid, 1 );
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,2473.2205,-1686.0530,13.5078);
	SetPlayerFacingAngle(playerid,140.4312);
	SetPlayerCameraPos(playerid,2470.3530,-1689.5225,15.0139);
	SetPlayerCameraLookAt(playerid,2473.2205,-1686.0530,13.5078);
	}
	if(classid==3||classid==4||classid==5){ 
 	SetPlayerTeam( playerid, 2 );
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,2304.0139,-1666.7949,14.6378);
	SetPlayerFacingAngle(playerid, 234.2924);
	SetPlayerCameraPos(playerid,2306.7917,-1668.7916,16.1490);
	SetPlayerCameraLookAt(playerid,2304.0139,-1666.7949,14.6378);
	}
	if(classid==6||classid==7||classid==8){
 	SetPlayerTeam( playerid, 3 );
	SetPlayerInterior(playerid,9);
	SetPlayerPos(playerid,315.8073,994.3613,1956.7516);
	SetPlayerFacingAngle(playerid, 359.7871);
	SetPlayerCameraPos(playerid,315.8260,999.4017,1957.5885);
	SetPlayerCameraLookAt(playerid,315.8073,994.3613,1956.7516);
 	}
  return 1;
}
Try something like that, I took it from my gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)