[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
#2

nice
Reply
#3

Thanks
Reply
#4

Nice!
Reply
#5

very original! nice job
Reply
#6

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

Nice job.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)