SA-MP Forums Archive
[FilterScript] City Spawn Choice! - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] City Spawn Choice! (/showthread.php?tid=628469)



City Spawn Choice! - Triggerz - 10.02.2017

Hey guys I have made a new filterscript in which you can choose what city you spawn in. The spawnpoints of each are chosen randomly according to that city. You can add your own spawnpoints(my coords are just for testing purposes).
There are 4 lists of coords (Coords for LS, LV, SF and RandomSpawn.)


COMMANDS

/sfspawn (You only spawn in the city SF)
/lsspawn (You only spawn in the city LS)
/lvspawn (You only spawn in the city LV)
/randomspawn (You spawn randomly in all cities)


INCLUDES
<a_samp>

CONFIGURATION
Compile the .pwn file into your filterscripts file.
Add the filterscript name to your server.cfg.

HOW TO ADD DIFFERENT SPAWNPOINTS
The instructions are in the script given below in pastebin.

SCREENSHOTS
http://imgur.com/a/pRm4S

SCRIPT FILE
Pastebin (perfect indents and no errors): http://pastebin.com/ZeBLkEvG

p.s My last filterscript was a complete fail. I ended up insulting a few I never meant to. I'm very sorry for my behavior then.


Re: City Spawn Choice! - aymane123 - 10.02.2017

Forgive me but its too too too basic !!! and useless


Re: City Spawn Choice! - 4D1L - 10.02.2017

Quote:
Originally Posted by aymane123
View Post
Forgive me but its too too too basic !!! and useless
It may be of no use to you but may be of use to someone else. So it would be harsh to call it useless as someone might just use this for the co-ordinates.


Re: City Spawn Choice! - Djean - 10.02.2017

Pretty basic for a release in my opinion, not much real use for this as a Filterscript.


Re: City Spawn Choice! - BiosMarcel - 10.02.2017

Quote:

Perfect indents

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/sfspawn"cmdtexttrue10) == 0)
    {
    
spawnSF 1;
    
spawnLV 0;
    
spawnLS 0;
    
randomspawn 0;
    
SendClientMessage(playerid0x99FFFF"You have set your spawnpoint to SF!");
    new 
str[64];
    
format(str,sizeof(str),"~b~Spawnpoint:~n~~r~LV~b~/~r~LS~b~/~g~SF");
    
GameTextForPlayer(playeridstr50006);
    return 
1;
    } 
No more to say xD


Re: City Spawn Choice! - Pottus - 10.02.2017

Quote:
Originally Posted by Djean
View Post
Pretty basic for a release in my opinion, not much real use for this as a Filterscript.
You can't even consider this a release. 1-Star


Re: City Spawn Choice! - Triggerz - 10.02.2017

You guys tell me what you think I should add to it if it's too basic.


Re: City Spawn Choice! - BiosMarcel - 10.02.2017

Quote:
Originally Posted by Triggerz
View Post
You guys tell me what you think I should add to it
THIS IS NOT MEANT TO BE OFFENSIVE, OK?

Look at the massive amount of filterscripts / game modes out there. Honestly you shouldn't add anything to it, but try to make something unique or useful, like includes, plugins or external tools.


Re: City Spawn Choice! - Triggerz - 10.02.2017

Quote:
Originally Posted by [Bios]Marcel
View Post
THIS IS NOT MEANT TO BE OFFENSIVE, OK?

Look at the massive amount of filterscripts / game modes out there. Honestly you shouldn't add anything to it, but try to make something unique or useful, like includes, plugins or external tools.
I don't know how to make them.


Re: City Spawn Choice! - BiosMarcel - 10.02.2017

Quote:
Originally Posted by Triggerz
View Post
I don't know how to make them.
Life is a learning experience Anyways, i don't say its easy to create something unique or/and useful, but you could also contribute to other projects, there are some nice projects that don't really go forward, cause the initial developers don't do much, but most of the time, those projects are open source, so you might want to think about helping others. Looking at myself for example, earlier, i did also just release bullshit like a troll admin system (basically you give someone admin and he gets banned on doing commands), a bomb that you could plant inside of a car (really poorly made) and more bullshit. No one needed that shit, it wasn't even much of a learning experience, so it was basically worth nothing, not for me and not for others. Nowadays, i at least try to do useful stuff, which definitely feels better ^^