SAMP (0.3?)Question
#1

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
Reply
#2

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


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

What's the big deal?
Reply
#5

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.
Reply
#6

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.
Reply
#7

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!
Reply
#8

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.
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)