SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 08/04/2010, 08:42 PM   #1
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default [FS] OnPlayerRequestClass Maker

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:
  • You can make a classes as much as you want
  • They will save under name Classes.txt in the scriptfiles directory
  • Command: /classmaker to starting the wizard
  • I don't know what I can tell more, just download it
Quote:
pawn Code:
/*
    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.
Code:
/* 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. =)
__________________

Sup?

Last edited by RyDeR`; 11/07/2010 at 12:51 PM.
RyDeR` is offline   Reply With Quote
Old 08/04/2010, 08:59 PM   #2
RoamPT
High-roller
 
RoamPT's Avatar
 
Join Date: Nov 2007
Location: Toronto, Canada
Posts: 1,110
Reputation: 26
Default Re: [FS] OnPlayerRequestClass Maker

Damn, two great releases today, this is going to be usefull Ryder, nice work!
__________________
RoamPT is offline   Reply With Quote
Old 08/04/2010, 09:05 PM   #3
[03]Garsino
Guest
 
Posts: n/a
Default Re: [FS] OnPlayerRequestClass Maker

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.
  Reply With Quote
Old 08/04/2010, 09:40 PM   #4
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: [FS] OnPlayerRequestClass Maker

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 =)
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 08/04/2010, 09:52 PM   #5
FlatMaN
Banned
 
Join Date: Jun 2009
Posts: 45
Reputation: 0
Default Re: [FS] OnPlayerRequestClass Maker

Great Job

But.

I has a problem with this.
if i press to "Ok" on the First Dialog, its closes..
So Replace
Code:
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
Code:
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
FlatMaN is offline   Reply With Quote
Old 08/04/2010, 10:07 PM   #6
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: [FS] OnPlayerRequestClass Maker

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
Code:
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
Code:
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..
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 09/04/2010, 03:02 AM   #7
Ibanez
Big Clucker
 
Join Date: Mar 2009
Posts: 121
Reputation: 1
Default Re: [FS] OnPlayerRequestClass Maker

Damn you, you made it before I made mine, great job
__________________
ShoServers.tk
ShoServers is a new community, with a unique script under development!
Ibanez is offline   Reply With Quote
Old 09/04/2010, 10:08 AM   #8
Zh3r0
High-roller
 
Join Date: Mar 2008
Posts: 4,513
Reputation: 398
Default Re: [FS] OnPlayerRequestClass Maker

You never stop!

Do more MORE MORE!!

U might be the next seif
__________________
Zh3r0 is offline   Reply With Quote
Old 09/04/2010, 11:27 AM   #9
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: [FS] OnPlayerRequestClass Maker

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. =)
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 09/04/2010, 01:28 PM   #10
Stunt-Andreas
Big Clucker
 
Join Date: Apr 2010
Posts: 88
Reputation: 2
Default Re: [FS] OnPlayerRequestClass Maker

Nice dude
Stunt-Andreas is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnPlayerRequestClass Cry_Wolf Help Archive 2 26/01/2010 06:41 PM
Job Maker..!!!! Ehab1911 Help Archive 1 03/01/2010 02:12 AM
Gun Maker Job illli illlil Help Archive 3 19/08/2009 01:46 AM
ONPLayerRequestClass Maker? :P mirkoiz Help Archive 2 13/04/2009 11:55 AM


All times are GMT. The time now is 03:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.