OnPlayerRequestClass
#1

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    if(
IsPlayerNPC(playerid)) return 1;
    
SetPlayerTeamFromClass(playeridclassid);
    
SetPlayerPos(playerid345.3785,302.2646,999.9382);
    
SetPlayerFacingAngle(playerid89.6528);
    
SetPlayerCameraLookAt(playerid345.3629,303.5599,999.9382);
    
SetPlayerCameraPos(playerid2116.0205 + (floatsin(-89.6528degrees)), 2143.3225 + (floatcos(-89.6528degrees)), 10.8203);
    return 
1;

Can Anyone Help me with this..? its the interior of 'Millie's room' in normal gta sa if i can remember...i want to show this screen during class selection...but it just shows some 24/7 and no skin..can anyone test this and can tell me whats wrong...look its an interior so do i need to specify somewhere that its an interior? if so, how...and yes test this
Reply
#2

Use SetPlayerInterior, Millie's room is ID 6.
pawn Код:
SetPlayerInterior(playerid, 6);
If you want players to be able to switch between skins, use AddPlayerClass
Reply
#3

Its showing a black screen...._. and the gametext like 'cops' 'civillians'
Reply
#4

can u please test the above code once please? does it work or not lol
Reply
#5

Alright i just tested it, i think it's because of your SetPlayerCameraPos coordinates being wrong, they seemed to place you somewhere in LV underground.
You could try using these:
pawn Код:
SetPlayerCameraPos(playerid, 343.7880, 301.1575, 1000.6064);
Reply
#6

thanks man... fixed... i used trignometery for camera pos but still thanks man +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)