SA-MP Forums Archive
SAMP (0.3?)Question - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SAMP (0.3?)Question (/showthread.php?tid=95526)



SAMP (0.3?)Question - [HUN]Gamestar - 03.09.2009

Hi!

How to block '/save' command. Player's savings vehicle's... -.-'
Please post idea, or create function to 0.3: BlockGlobalCommand("/save"); (/save = Unknown Command on this server)

Thanks.
Gamestar


Re: SAMP (0.3?)Question - (.Aztec); - 03.09.2009

Like, they can't use /save in your server? I do believe that's impossible, due to the fact that /save is client-sided.


Re: SAMP (0.3?)Question - [HUN]Gamestar - 03.09.2009


_________________________________________________
Please add functions (Dev's):
BlockGlobalCommand( playerid, cmd[ ] );
BlockGlobalCommandForAll( cmd[ ] );
BlockGlobalCommand( playerid, "/save" );
BlockGlobalCommandForAll( "/save" );


Re: SAMP (0.3?)Question - lavamike - 03.09.2009

What's the big deal?


Re: SAMP (0.3?)Question - Whiteagle - 04.09.2009

You could try this but i dont know if it will work, since it is client side:

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return 0;
		}
	}
If it dont works you can kick anyone that uses that command

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return Kick(playerid); // Change to Ban(playerid); if you want to ban them
		}
	}
I guess it's possible, but i'm still going to test it.


Re: SAMP (0.3?)Question - International - 04.09.2009

It dont matter if your players take your positions they can place them there in there server anyway, your just being selfish because you had to do it the hard way.


Re: SAMP (0.3?)Question - Whiteagle - 04.09.2009

Quote:
Originally Posted by International
It dont matter if your players take your positions they can place them there in there server anyway, your just being selfish because you had to do it the hard way.
Internacional i dont agree with your opinion, if someone wanted to clone my gamemode i would NOT be selfish in ANY way by trying to stop them from copying my work!


Re: SAMP (0.3?)Question - ZuppR - 04.09.2009

Quote:
Originally Posted by Whiteagle
Quote:
Originally Posted by International
It dont matter if your players take your positions they can place them there in there server anyway, your just being selfish because you had to do it the hard way.
Internacional i dont agree with your opinion, if someone wanted to clone my gamemode i would NOT be selfish in ANY way by trying to stop them from copying my work!
Unless all you've got in your gamemode is positions then no, they cannot copy your gamemode with /save, only positions.
Why not remove your commands while you're at it? I mean people could just re-create them as well if they wanted to.

At the end of the day, if someone wanted to steal your ideas there would not really be much you can do about it.


Re: SAMP (0.3?)Question - Marcus09 - 04.09.2009

Quote:
Originally Posted by Whiteagle
You could try this but i dont know if it will work, since it is client side:

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return 0;
		}
	}
If it dont works you can kick anyone that uses that command

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return Kick(playerid); // Change to Ban(playerid); if you want to ban them
		}
	}
I guess it's possible, but i'm still going to test it.
No that will not work.
Save is a client side command. It does not get send to the server.


Re: SAMP (0.3?)Question - Daem - 04.09.2009

Quote:
Originally Posted by Whiteagle
You could try this but i dont know if it will work, since it is client side:

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return 0;
		}
	}
If it dont works you can kick anyone that uses that command

Код:
	public OnPlayerCommandText(playerid, cmdtext[])
	{
		if (strcmp(cmdtext, "/save", true) == 0)
		{
			return Kick(playerid); // Change to Ban(playerid); if you want to ban them
		}
	}
I guess it's possible, but i'm still going to test it.
it should be in OnPlayerText