SA-MP Forums Archive
[FilterScript] [FS] OnPlayerRequestClass Maker - 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)
+--- Thread: [FilterScript] [FS] OnPlayerRequestClass Maker (/showthread.php?tid=140360)

Pages: 1 2 3


[FS] OnPlayerRequestClass Maker - RyDeR` - 08.04.2010

Yep, you heard it true. An OnPlayerRequestClass maker. With this filterscript you can make easy skin choose locations instead of gambling the camera pos etc..
More info see the pics below.

Features:
Quote:
pawn Код:
/*
    Release:
        » OnPlayerRequestClass Maker Filterscript

    Version:
            » v0.1a

    Functions:
            » isNumeric(const string[]);

    Credits:
        » Credits to the maker of isNumeric
*/
How to use?
I will show you how with pictures and some information under it.

1. Spawn and type /classmaker and you will see this: >>


2. Press OK, then you're back free, now you have to go to the place where the player should choose his skin (other words watch in the camera). Press 'ENTER' when you done.


3. Then it will ask you if you're sure with the coordinates you have take. If you answer no it leaves you free and you can choose other coordinates (Press 'ENTER' when you done).


4. Then another box will apear when you click yes in the previous dialog which asks you to give the distance between the camera and the player. I recommend MEDIUM but you can also write numbers..


5. This is the final step actually , here it just ask you to give a name to save the data under (saved in classes.txt in scriptfiles). I took Test; and pressed OK


6. Now it's done!


7. I exit the game now and go to my scriptfiles directory where I find this under the classes.
Код:
/* Saved under name: Test - Add under OnPlayerRequestClass.. */

SetPlayerPos(playerid, 2482.113525, 1266.363037, 10.812500);
SetPlayerFacingAngle(playerid, 267.734191);
SetPlayerCameraLookAt(playerid, 2482.113525, 1266.363037, 10.812500);
SetPlayerCameraPos(playerid, 2482.113525 + (10 * floatsin(-267.734191, degrees)), 1266.363037 + (10 * floatcos(-267.734191, degrees)), 10.812500);
8. Open your gamemode and write those data under OnPlayerRequestClass and just compile it and close it.

9. Start your server and THIS IS THE RESULT.



Download:
Click here to download - Mirror: SolidFiles
Click here to download - Mirror: Burridge (%100 recomended/direct link)
Click here to download - Mirror: MultiUpload

Note:
I don't think there are bugs. If there are just report them.
Have fun. =)


Re: [FS] OnPlayerRequestClass Maker - RoamPT - 08.04.2010

Damn, two great releases today, this is going to be usefull Ryder, nice work!


Re: [FS] OnPlayerRequestClass Maker - [03]Garsino - 08.04.2010

Quote:
Originally Posted by RoamPT
Damn, two great releases today, this is going to be usefull Ryder, nice work!
^

BTW, make it save the interior too.


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 08.04.2010

Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by RoamPT
Damn, two great releases today, this is going to be usefull Ryder, nice work!
^

BTW, make it save the interior too.
Yea good idea. I'll do soon.
Quote:
Originally Posted by RoamPT
Damn, two great releases today, this is going to be usefull Ryder, nice work!
Thanks man =)


Re: [FS] OnPlayerRequestClass Maker - FlatMaN - 08.04.2010

Great Job

But.

I has a problem with this.
if i press to "Ok" on the First Dialog, its closes..
So Replace
Код:
case 1000:
{
	    if(!response) return SendClientMessage(playerid, RED, ">> You have stopped making class! Type /classmaker to start a new wizard!"), TogglePlayerControllable(playerid, true), MakeClass[playerid] = false;
	    TogglePlayerControllable(playerid, true), MakeClass[playerid] = true;
}
To
Код:
case 1000:
{
	    if(!response) return SendClientMessage(playerid, RED, ">> You have stopped making class! Type /classmaker to start a new wizard!"), TogglePlayerControllable(playerid, true), MakeClass[playerid] = false;
	    TogglePlayerControllable(playerid, true), MakeClass[playerid] = true;
	    ShowDialog(playerid, 1001);
}
))(Or this problem only for me?)))

Sry for my bad english


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 08.04.2010

Quote:
Originally Posted by FlatMaN
Great Job

But.

I has a problem with this.
if i press to "Ok" on the First Dialog, its closes..
So Replace
Код:
case 1000:
{
	    if(!response) return SendClientMessage(playerid, RED, ">> You have stopped making class! Type /classmaker to start a new wizard!"), TogglePlayerControllable(playerid, true), MakeClass[playerid] = false;
	    TogglePlayerControllable(playerid, true), MakeClass[playerid] = true;
}
To
Код:
case 1000:
{
	    if(!response) return SendClientMessage(playerid, RED, ">> You have stopped making class! Type /classmaker to start a new wizard!"), TogglePlayerControllable(playerid, true), MakeClass[playerid] = false;
	    TogglePlayerControllable(playerid, true), MakeClass[playerid] = true;
	    ShowDialog(playerid, 1001);
}
))(Or this problem only for me?)))

Sry for my bad english
It's not a problem, you have to go to a place and press enter.
Read, it's explained clearly above

btw. Your english is fine

Edit: Can you edit your post because when someone is going to edit that, the FS wil bug completely..


Re: [FS] OnPlayerRequestClass Maker - Ibanez - 09.04.2010

Damn you, you made it before I made mine, great job


Re: [FS] OnPlayerRequestClass Maker - Zh3r0 - 09.04.2010

You never stop!

Do more MORE MORE!!

U might be the next seif


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 09.04.2010

Thanks for comments
_________________________________________________
Quote:
Originally Posted by PlayON
You never stop!

Do more MORE MORE!!

U might be the next seif
lol
_________________________________________________
Edit: Anyone tested? I tested 5 times and I got all positive results. Please write here the results after testing. =)


Re: [FS] OnPlayerRequestClass Maker - Stunt-Andreas - 09.04.2010

Nice dude


Re: [FS] OnPlayerRequestClass Maker - XRVX - 09.04.2010

again great work ryder
gonna try it out


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 09.04.2010

Quote:
Originally Posted by »»[DG
тσкyσDяιFт™«« ]
Nice dude
Ty =)
Quote:
Originally Posted by XRVX
again great work ryder
gonna try it out
Thx, and how does it work?


Re: [FS] OnPlayerRequestClass Maker - XRVX - 09.04.2010

test passed
nice work man


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 09.04.2010

Quote:
Originally Posted by XRVX
test passed
nice work man
Thanks, glad to hear that


Re: [FS] OnPlayerRequestClass Maker - russo666 - 09.04.2010

Tested medium and short. Worked fine. Ty


Re: [FS] OnPlayerRequestClass Maker - DeadalusNetwork - 09.04.2010

Nice and useful.


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 09.04.2010

Quote:
Originally Posted by Daedalus
Nice and useful.
Thanks =)


Re: [FS] OnPlayerRequestClass Maker - ViruZZzZ_ChiLLL - 09.04.2010

I have nothing to say, except....AWESOME!!!!
I was having trouble with camera pos This is really [b]useful!!
________
F2004


Re: [FS] OnPlayerRequestClass Maker - RyDeR` - 09.04.2010

Quote:
Originally Posted by ViruZZzZ_ChiLLL
I have nothing to say, except....AWESOME!!!!
I was having trouble with camera pos This is really [b]useful!!
Yeah me to, but from now on, never =)
Thanks for you comment.


Re: [FS] OnPlayerRequestClass Maker - Zh3r0 - 10.04.2010

Woah! It works perfeclty no bugs atall.

Love it, made a new class selection, yay.