SA-MP Forums Archive
[FilterScript] 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Maps (https://sampforum.blast.hk/forumdisplay.php?fid=64)
+---- Thread: [FilterScript] OnPlayerRequestClass (/showthread.php?tid=446567)



OnPlayerRequestClass - Can4ns - 26.06.2013

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.


Re: OnPlayerRequestClass - dEcooR - 26.06.2013

nice


Re: OnPlayerRequestClass - Can4ns - 27.06.2013

Thanks


Re: OnPlayerRequestClass - KayJ - 19.04.2014

Nice!


Re: OnPlayerRequestClass - MpK - 19.04.2014

very original! nice job


Re: OnPlayerRequestClass - Charalambos26 - 25.05.2015

I can only choose CJ skin, and I cant press Spawn,
why?


Re: OnPlayerRequestClass - Konverse - 25.05.2015

Nice job.


Re: OnPlayerRequestClass - Abagail - 25.05.2015

Nice but then other players can see the player and possibly interact with them. To fix this, simply:

pawn Код:
SetPlayerVirtualWorld(playerid, 1);
And also, this isn't an FS, as it is not really something that's ready for use or in the proper format for compilation.