SA-MP Forums Archive
Can i see actors while 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: Can i see actors while OnPlayerRequestClass (/showthread.php?tid=618480)



Can i see actors while OnPlayerRequestClass - lackmail - 06.10.2016

hi i created two actors beside my main player in OnPlayerRequestClass but they are not showing while i am selecting a skin i just wanted to know is it possible to see actors while selecting skins or not because i can see the actors after i spawn


Re: Can i see actors while OnPlayerRequestClass - CannonBolt - 06.10.2016

Show your onplayerrequestclass.


Re: Can i see actors while OnPlayerRequestClass - Quinncell - 06.10.2016

Perhaps you forgot to set a camera?
Like @CannonBolt said, show us your OnPlayerRequestClass

also if you did forget to set a camera, use these

PHP код:
SetPlayerCameraPos 
PHP код:
SetPlayerCameraLookAt 
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos


Re: Can i see actors while OnPlayerRequestClass - lackmail - 06.10.2016

i set the camera
Код:
        //gamemodeint
	Actor = CreateActor(162, -1428.7665,-952.0853,201.0495,171.7908);
	ApplyActorAnimation(Actor, "PED", "FIGHTA_2", 4.1, 1, 0, 0, 0, 0);

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, -1414.1461,-954.4151,202.1792);
	SetPlayerCameraLookAt(playerid, -1428.7665,-952.0853,201.0495);
	return 1;
}



Re: Can i see actors while OnPlayerRequestClass - Quinncell - 06.10.2016

I apologize, I misread the title.I thought you couldn't see skins in the class selection.

And no.I don't think it's possible to see an actor in class selection.There may be a method but I am not sure.
Do more research on it.


Re: Can i see actors while OnPlayerRequestClass - Threshold - 06.10.2016

Only way to do it is to be in spectating mode or pre-stream them. The only way to pre-stream them would be to have the player spawn, teleport to them, then return to class selection.

So with a regular OnPlayerRequestClass method, no, it's not possible.


Re: Can i see actors while OnPlayerRequestClass - Rdx - 06.10.2016

TogglePlayerSpectating(playerid, true);