SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 20/08/2011, 01:41 PM   #11
!CryWolf
Big Clucker
 
Join Date: May 2010
Posts: 60
Reputation: 1
Default Re: Starting a gamemode from a filterscript.

Quote:
Originally Posted by Basicz View Post
Step 1 >> New file
Step 2 >> CTRL+A then BACKSPACE
Step 3 >> Open LuxAdmin, CTRL+A, CTRL+C
Step 4 >> Open YourGamemode, CTRL+V
Step 5 >> CTRL+H
Step 6 >> Input in the first bar "public OnFilterScriptInit"
Input in the second bar "public OnGameModeInit"
OK
Step 7 >> CTRL+H again,
Input in the first bar "public OnFilterScriptExit"
Input in the second bar "public OnGameModeExit"
OK
Step 8 >> Remove #define FILTERSCRIPT
Step 9 >> Add this below #includes
Code:
main(){}
Step 10 >> Make sure you have the valid includes
Step 11 >> Add a 'AddPlayerClass' code in OnGameModeInit
Step 12 >> Add a requestclass...
Step 13 >> Compile ( F5 ), and run your script
Step 14 >> Have fun
I tried this already, but I having to problems:
1. when I type a commands, it's UNKOWN.
2. when I spawn, this what happen:
http://img13.imageshack.us/img13/6758/samp206j.png
Quote:
Originally Posted by Kush View Post
Then go post in LuxAdmin's section.
I don't think so, everything is alright with the filterscript!
I think that I have to do something while converting the filterscript to a gamemode.
!CryWolf is offline  
Old 20/08/2011, 01:45 PM   #12
Basicz
Gangsta
 
Basicz's Avatar
 
Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 623
Reputation: 35
Default Re: Starting a gamemode from a filterscript.

Add:
Code:
AddPlayerClass(0,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
in OnGameModeInit.

Remove luxadmin from your filterscripts?

Commands should work fine.
__________________

- Quina, from the game " Final Fantasy IX "
Basicz is offline  
Old 20/08/2011, 01:50 PM   #13
!CryWolf
Big Clucker
 
Join Date: May 2010
Posts: 60
Reputation: 1
Default Re: Starting a gamemode from a filterscript.

Quote:
Originally Posted by Basicz View Post
Add:
Code:
AddPlayerClass(0,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
in OnGameModeInit.

Remove luxadmin from your filterscripts?

Commands should work fine.
I added it already, plus to 5 classes to be more sure.

when I connect, I see: "write /register to make your own account". (and that is a start, isn't?)
put when i type it, I Get that nasty message, SERVER: UNKNOWN COMMAND
!CryWolf is offline  
Old 20/08/2011, 01:53 PM   #14
Kush
Gangsta
 
Join Date: May 2011
Posts: 785
Reputation: 123
Default Re: Starting a gamemode from a filterscript.

Quote:
Originally Posted by !CryWolf View Post
I don't think so, everything is alright with the filterscript!
I think that I have to do something while converting the filterscript to a gamemode.
No, everything is not alright with the filterscript.
Kush is offline  
Old 20/08/2011, 02:02 PM   #15
!CryWolf
Big Clucker
 
Join Date: May 2010
Posts: 60
Reputation: 1
Default Re: Starting a gamemode from a filterscript.

Can you explain what do you mean?
!CryWolf is offline  
Old 20/08/2011, 07:44 PM   #16
!CryWolf
Big Clucker
 
Join Date: May 2010
Posts: 60
Reputation: 1
Default Re: Starting a gamemode from a filterscript.

BUMP, please help me!
!CryWolf is offline  
Old 20/08/2011, 09:18 PM   #17
Kush
Gangsta
 
Join Date: May 2011
Posts: 785
Reputation: 123
Default Re: Starting a gamemode from a filterscript.

Quote:
Originally Posted by !CryWolf View Post
Can you explain what do you mean?
LuxAdmin is shitty. Nuff said.
Kush is offline  
 

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
Starting my admin filterscript ricardo178 Help Archive 2 13/03/2011 09:44 PM
Gamemode to Filterscript Mehtab Help Archive 11 26/11/2010 09:35 PM
Run a filterscript through a gamemode? mtywe Help Archive 2 14/11/2010 05:23 AM
[HELP] FilterScript & GameMode. Nakash Help Archive 2 21/11/2009 09:34 AM


All times are GMT. The time now is 02:15 PM.


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