Problem With PlayerRequestClass
#1

hi,

i want to set my class selection at the Abandoned airport

the code looks like this:

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid,414.3552,2530.1565,23.3113);
  SetPlayerCameraPos(playerid,414.3552,2530.1565,23.3113);
  SetPlayerFacingAngle(playerid,0.0)

	PlayerPlaySound(playerid,1187 ,0, 0, 0);
  ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_loop ",4.0,1,0,0,0,-1);
 	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
  PlayerPlaySound(playerid,1188 ,0, 0, 0);
	return 1;
}
here is the saved position i used:

Код:
AddPlayerClass(0,414.3552,2530.1565,23.3113,180.0331,0,0,0,0,0,0); // rrequest class
the problem is it does not even look at the player, it looks like this:



please help

PS-it just stays at that screen till i press shift and spawn
Reply
#2

Any warnings or errors that you get on compile?
Reply
#3

nope, no warings or errors it compiles fine
Reply
#4

You've forgot
Код:
SetPlayerCameraLookAt
Camera doesn't know where to look.
Reply
#5

what do i put for it?

EDIT: dw i think i done it, im gonna test it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)