SA-MP Forums Archive
[GameMode] Stunt Showroom (for LS) - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Stunt Showroom (for LS) (/showthread.php?tid=642150)



Stunt Showroom (for LS) v1.2 - poxer - 25.09.2017

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:
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. ♥


Re: Stunt Showroom (for LS) - STRIKER19501 - 25.09.2017

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

seems nyc btw


Re: Stunt Showroom (for LS) - BigETI - 25.09.2017

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


Re: Stunt Showroom (for LS) - cuber - 25.09.2017

Such a lovely release..


Re: Stunt Showroom (for LS) - poxer - 25.09.2017

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

EDIT: done.


Re: Stunt Showroom (for LS) - Dayrion - 25.09.2017

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 ?


Re: Stunt Showroom (for LS) - R4nd4ll - 26.09.2017

+Rep !

I was looking for something like this since ages !


Re: Stunt Showroom (for LS) - poxer - 27.09.2017

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


Re: Stunt Showroom (for LS) - Kaponi - 28.09.2017

meh :/


Re: Stunt Showroom (for LS) - poxer - 13.10.2017

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


Re: Stunt Showroom (for LS) - Mobtiesgangsa - 13.10.2017

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


Re: Stunt Showroom (for LS) - Xeon™ - 13.10.2017

Hey, Good job!

(i will review the code later)


Re: Stunt Showroom (for LS) - Mr.Vince™ - 14.10.2017

Nice Release
+Rep


Re: Stunt Showroom (for LS) - Flamehaze7 - 14.10.2017

Very nice!


Re: Stunt Showroom (for LS) - R4nd4ll - 15.10.2017

Nice, +Rep


Re: Stunt Showroom (for LS) - poxer - 17.10.2017

Thanks for the feedback ♥


Re: Stunt Showroom (for LS) - poxer - 17.01.2018

Released 1.2, I hope you like it!