[FilterScript] OnPlayerRequestClass
#1

Just a simple map and a few lines of code. Was bored so yeh. Nothing special ;3



Objects:

pawn Код:
CreateObject(1775,1172.0000000,-1319.0999800,15.5000000,0.0000000,0.0000000,92.0000000); //object(cj_sprunk1) (2)
        CreateObject(1337,1173.4218800,-1325.3054200,14.6984900,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (2)
        CreateObject(13644,1961.4000200,-1199.4000200,18.3000000,0.0000000,0.0000000,224.7500000); //object(steps) (1)
        CreateObject(2780,1964.1999500,-1199.3000500,13.7000000,0.0000000,0.0000000,0.0000000); //object(cj_smoke_mach) (2)
        CreateObject(1215,1961.0999800,-1201.5999800,19.8000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (4)
        CreateObject(1215,1961.5000000,-1197.3000500,19.8000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (5)
        CreateObject(14467,1960.0000000,-1203.3000500,21.3000000,0.0000000,0.0000000,227.0000000); //object(carter_statue) (1)
        CreateObject(14467,1961.0000000,-1196.1999500,21.3000000,0.0000000,0.0000000,315.7500000); //object(carter_statue) (2)
        CreateObject(9101,1959.4697300,-1199.0048800,-56.0767300,0.0000000,0.0000000,0.0000000); //object(luxorlight_nt) (1)
        CreateObject(8492,1959.9000200,-1199.6999500,27.5000000,0.0000000,0.0000000,239.2500000); //object(flamingo05_lvs) (2)
And the code:
pawn Код:
SetPlayerPos(playerid, 1959.728271, -1199.584106, 20.909767);
    SetPlayerFacingAngle(playerid, 90.177986);
    SetPlayerCameraLookAt(playerid, 1959.728271, -1199.584106, 20.909767);
    SetPlayerCameraPos(playerid, 1959.728271 + (25 * floatsin(-90.177986, degrees)), -1199.584106 + (25 * floatcos(-90.177986, degrees)), 20.909767);
You're welcome lol.
Reply


Messages In This Thread
OnPlayerRequestClass - by Can4ns - 26.06.2013, 14:39
Re: OnPlayerRequestClass - by dEcooR - 26.06.2013, 15:55
Re: OnPlayerRequestClass - by Can4ns - 27.06.2013, 07:02
Re: OnPlayerRequestClass - by KayJ - 19.04.2014, 03:46
Re: OnPlayerRequestClass - by MpK - 19.04.2014, 13:32
Re: OnPlayerRequestClass - by Charalambos26 - 25.05.2015, 21:03
Re: OnPlayerRequestClass - by Konverse - 25.05.2015, 21:21
Re: OnPlayerRequestClass - by Abagail - 25.05.2015, 21:29

Forum Jump:


Users browsing this thread: 1 Guest(s)