[GameMode] Stunt Showroom (for LS)
#1

Hello, this is the first gamemode I ever release. It's been done for people who like to make stunt areas and stuff. So, with this gamemode, you don't have to script yourself a server in order to test the area, and everything is suited in front of the LS airport, to make it more comfortable.

Commands:
  • /v (/car)
  • /color
  • /repair (/fix)
  • /nitro (/nos)
  • /hydraulics (/hs)
  • /flip
  • /godcar (/gc)
  • /goto
  • /heal (/hp)
  • /respawn
  • /weather
  • /time
  • /stopmusic (when an admin plays music)
  • /changelog
  • /credits
Changelog:

- Players now can repair, flip and add nitro to their vehicles using keys.
- Added more skins.
- Fixed sound alert on PM.
- /godcar has been totally re-done.
- Code optimization and improvements.
- Hopefully a bit more of documentation in the code.

Bugs:

So far, I haven't find any. If you find one, please let me know!

Screenshots:

Class Selection.
Player Spawn.
Environment.
Command List.
Admin Chat.

Credits:

SA:MP Dev Team (for the server binaries)
Zeex (for ZCMD)
****** (for sscanf2)
Emmet_ (for easyDialog)
Incognito (for streamer plugin)
Slice (for strlib)
0x5A656578 (for crashdetect)

Download:

Github!

Test Server:

No test server (RIP my VPS )

I hope you like it, I'm still a bit newbie and this is a pretty basic script. Please, leave some feedback if possible and thanks in advance. ♥
Reply
#2

how are we suppose to check codes , where is the .pwn file y only amx ,i dont get it .........

seems nyc btw
Reply
#3

Where can I find the source code in your GitHub page?
Reply
#4

Such a lovely release..
Reply
#5

lol, I'm so sorry, I really forgot to upload the source code, I'm on it right now.

EDIT: done.
Reply
#6

I did not checked every line of your gamemode but there I've some advice. I hope I did not make mistakes.
PHP Code:
stock IsNumeric(string[]){
    for (new 
0strlen(string); ji++){
        if (
string[i] > '9' || string[i] < '0') return 0;
    }
    return 
1;
}
-> 
IsNumeric(string[])
    return !
sscanf(string"{i}");
SomeSpam(playerid)
{
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
}
->
SomeSpam(playeridspam 10)
{
    for(new 
i!= spami++)
        
SendClientMessage(playerid, -1"");

stopmusicforall/playmusic : You need to check if the player is connected and he's not an npc inside both loop
GetPlayerName(targetid, name, 20) : Recommended to use "MAX_PLAYER_NAME" for length
repair : You should also set the vehicle's health at the max
nitro : if (GetPlayerVehicleID(playerid) == carro) Why you don't you even check if the player's vehicle id is the same ?
Reply
#7

+Rep !

I was looking for something like this since ages !
Reply
#8

Quote:
Originally Posted by Dayrion
View Post
I did not checked every line of your gamemode but there I've some advice. I hope I did not make mistakes.
PHP Code:
stock IsNumeric(string[]){
    for (new 
0strlen(string); ji++){
        if (
string[i] > '9' || string[i] < '0') return 0;
    }
    return 
1;
}
-> 
IsNumeric(string[])
    return !
sscanf(string"{i}");
SomeSpam(playerid)
{
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
    
SendClientMessage(playerid0x000000FF"");
}
->
SomeSpam(playeridspam 10)
{
    for(new 
i!= spami++)
        
SendClientMessage(playerid, -1"");

stopmusicforall/playmusic : You need to check if the player is connected and he's not an npc inside both loop
GetPlayerName(targetid, name, 20) : Recommended to use "MAX_PLAYER_NAME" for length
repair : You should also set the vehicle's health at the max
nitro : if (GetPlayerVehicleID(playerid) == carro) Why you don't you even check if the player's vehicle id is the same ?
I applied your suggestions about the music player, playername, the client messages, etc. Except for the nitro, because I really didn't get much your point, but I removed some lines from that code because it was a copy-paste from the wiki of "AddVehicleComponent" that I did months ago. Thanks for everything on that ♥. And I'm also newbie with the iterators, I knew there was some way to get the clientmessages to be managed in a better way but I wasn't sure of how to do it.

Anyways, I've uploaded the new version (and I didn't forget to upload the source code this time).
Reply
#9

meh :/
Reply
#10

Released version 1.1 of this gamemode! I hope you like it and enjoy it!
Reply
#11

poxer i downloaded your release i was impresed of your gamemode not to mention +rep bro

i realy loved the TD info when entered a vehicle that was fantastic
Reply
#12

Hey, Good job!

(i will review the code later)
Reply
#13

Nice Release
+Rep
Reply
#14

Very nice!
Reply
#15

Nice, +Rep
Reply
#16

Thanks for the feedback ♥
Reply
#17

Released 1.2, I hope you like it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)