SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 10/02/2009, 12:58 AM   #1
TheShade
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default [GM] SA:RP Script - CityWide based gamemode

SA:RP is a new fork of the popular CityWide roleplay. Like CityWide, SA:RP is GPL'ed and free to use and modify within the rules of the license. All of SA:RP's modifiable data is stored in a MySQL database and can be edited either in game via admin commands or via PhpMyAdmin/Query Browser.

SA:RP is a new project, and has only just begun expanding it.

Features since fork from CityWide:
  • MD5 Hashing of passwords
  • Automatic gates for Law Enforcement
  • Revised Admin On Duty system (To be expanded)
  • New Command: /killcar (Respawn car) for factions and admins
  • New Command: /deletecar (Destroy's the car) for admins
  • New Config Option: Admin IP check able to be enabled/disabled
  • General Rewrites for better performance and game play
  • Vehicles respawns rewritten to be based on usage! (15 minutes after last occupant)
  • Numerous bug fixes! (Commands, Vehicle respawns, etc)

To download visit our site: http://elliottdev.co.cc/
To report any bugs, please use our Bug Tracking: http://elliottdev.co.cc/mantis/
If you have any feature requests, or suggestions that can be implemented please also post them on the Bug Tracker.
TheShade is offline   Reply With Quote
Old 10/02/2009, 01:28 AM   #2
pepper
Big Clucker
 
Join Date: Dec 2008
Posts: 171
Reputation: -33
Default Re: [GM]SA:RP - San Andreas Roleplay Script (MySQL)

Code:
C:\Documents and Settings\vador\Desktop\trunk\gamemodes\sarp.pwn(49) : error 001: expected token: ";", but found "new"
but there is a ; there :/
__________________
Looking for a cheap samp Hosting? Want a company that offers a 30 day money back guarantee
Then head to https://************/WintermeyerHosting now offering 100 slot servers for only 20 bucks use promo 50 Off and get 50% off offer ends on 7/31/17
pepper is offline   Reply With Quote
Old 10/02/2009, 01:34 AM   #3
TheShade
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: [GM]SA:RP - San Andreas Roleplay Script (MySQL)

Did you download the nightly, stable, or from the svn? Also I think that might be because I made a minor mistake. Try adding a ; to the end of line 46 or 47 (Whichever you have uncommented, 46 is to default). -- It's weird that you're getting the error though, as it hasn't appeared before.

Basically, replace:
Code:
// Change comment to enable
new admincheckip = 0 // Disabled
//new admincheckip = 1 // Enabled
with:
Code:
// Change comment to enable
new admincheckip = 0; // Disabled
//new admincheckip = 1; // Enabled
Tell me if that fixes it, and I'll reissue the stable. Again, very weird that I never noticed that (No compiler errors for me).
TheShade is offline   Reply With Quote
Old 10/02/2009, 02:11 AM   #4
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,181
Reputation: 5
Default Re: [GM]SA:RP - San Andreas Roleplay Script (MySQL)

Change the thread name, Some people might get the wrong idea 0.o
__________________
IVMP
ICECOLDKILLAK8 is offline   Reply With Quote
Old 10/02/2009, 02:13 AM   #5
TheShade
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: [GM] SA:RP Script - CityWide based gamemode

Changed the topic name, hopefully less confusing. But honestly the old topic name to me seemed fine. Regardless of the fact there is a community named SARP
TheShade is offline   Reply With Quote
Old 10/02/2009, 02:19 AM   #6
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,181
Reputation: 5
Default Re: [GM] SA:RP Script - CityWide based gamemode

I prefer to not have the passwords md5 hashed because i can never hash it the same in php as i do in pawn which means you cant have change pass features e.t.c in a UCP
__________________
IVMP
ICECOLDKILLAK8 is offline   Reply With Quote
Old 10/02/2009, 02:23 AM   #7
TheShade
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: [GM] SA:RP Script - CityWide based gamemode

The MD5 hash implemented in the script is a standard md5 hash. It isn't salted. At one point, during testing of adding the md5 hashing, I actually had to edit my password in the players table, which meant I had to create a md5 hash to paste in there. I did this using php. So, I don't really see the issue.
TheShade is offline   Reply With Quote
Old 10/02/2009, 02:26 AM   #8
kylebk
Little Clucker
 
Join Date: Feb 2009
Posts: 4
Reputation: 0
Default Re: [GM] SA:RP Script - CityWide based gamemode

The PHP md5 hashing function works identically to the Pawn hashing function. The results are always the same if the string is the same.
kylebk is offline   Reply With Quote
Old 10/02/2009, 02:28 AM   #9
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,181
Reputation: 5
Default Re: [GM] SA:RP Script - CityWide based gamemode

Quote:
Originally Posted by TheShade
Did you download the nightly, stable, or from the svn? Also I think that might be because I made a minor mistake. Try adding a ; to the end of line 46 or 47 (Whichever you have uncommented, 46 is to default). -- It's weird that you're getting the error though, as it hasn't appeared before.

Basically, replace:
Code:
// Change comment to enable
new admincheckip = 0 // Disabled
//new admincheckip = 1 // Enabled
with:
Code:
// Change comment to enable
new admincheckip = 0; // Disabled
//new admincheckip = 1; // Enabled
Tell me if that fixes it, and I'll reissue the stable. Again, very weird that I never noticed that (No compiler errors for me).
You could use a #define for that insted of a variable
__________________
IVMP
ICECOLDKILLAK8 is offline   Reply With Quote
Old 10/02/2009, 02:30 AM   #10
TheShade
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: [GM] SA:RP Script - CityWide based gamemode

I know, and that was my original implementation. I might re-implement it that way. However, I switched to a variable because I was getting an odd warning. Eventually I'll probably switch back, but it seems trivial.

At any rate, let's not get too much into a back and forth over the small things. Thanks for your interest though.
TheShade 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
[GameMode] CityWide Roleplay: fully MySQL based roleplay server Alex_Raven Gamemode Scripts 823 01/09/2012 03:16 AM
[GameMode] [GM] QBase RolePlay Based On ModernTopia Script FrankQ Gamemode Scripts 199 05/08/2012 04:48 PM
Was Pawno script based on php? ReactionGameServers Help Archive 20 22/05/2010 07:25 PM
Loading More Then 254 Objects(for a Sandbox based gamemode) T-H-C Help Archive 2 29/03/2010 08:49 AM
Grand Larceny based gamemode problem [RO]Madalin2009 Help Archive 0 03/09/2009 04:47 PM


All times are GMT. The time now is 09:30 PM.


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