SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 03/09/2009, 10:39 PM   #1
[HUN]Gamestar
Big Clucker
 
Join Date: Aug 2009
Posts: 183
Reputation: 0
Default SAMP (0.3?)Question

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
[HUN]Gamestar is offline  
Old 03/09/2009, 10:42 PM   #2
(.Aztec);
Huge Clucker
 
Join Date: Mar 2009
Posts: 456
Reputation: 0
Default Re: SAMP (0.3?)Question

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

(.Aztec); will no longer be used by me. I am changing my username to an old forum account i've had registered for a while, but never used.

My username has been changed to Sky4D
(.Aztec); is offline  
Old 03/09/2009, 11:02 PM   #3
[HUN]Gamestar
Big Clucker
 
Join Date: Aug 2009
Posts: 183
Reputation: 0
Default Re: SAMP (0.3?)Question


_________________________________________________
Please add functions (Dev's):
BlockGlobalCommand( playerid, cmd[ ] );
BlockGlobalCommandForAll( cmd[ ] );
BlockGlobalCommand( playerid, "/save" );
BlockGlobalCommandForAll( "/save" );
[HUN]Gamestar is offline  
Old 03/09/2009, 11:49 PM   #4
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 407
Reputation: 2
Default Re: SAMP (0.3?)Question

What's the big deal?
lavamike is offline  
Old 04/09/2009, 12:06 AM   #5
Whiteagle
Big Clucker
 
Join Date: Mar 2008
Posts: 73
Reputation: 2
Default Re: SAMP (0.3?)Question

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

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

Code:
	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.
Whiteagle is offline  
Old 04/09/2009, 12:07 AM   #6
International
Big Clucker
 
Join Date: Nov 2008
Posts: 93
Reputation: 0
Default Re: SAMP (0.3?)Question

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.
International is offline  
Old 04/09/2009, 12:08 AM   #7
Whiteagle
Big Clucker
 
Join Date: Mar 2008
Posts: 73
Reputation: 2
Default Re: SAMP (0.3?)Question

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!
Whiteagle is offline  
Old 04/09/2009, 03:46 AM   #8
ZuppR
Little Clucker
 
Join Date: Feb 2008
Posts: 29
Reputation: 0
Default Re: SAMP (0.3?)Question

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.
ZuppR is offline  
Old 04/09/2009, 03:52 AM   #9
Marcus09
Little Clucker
 
Join Date: Aug 2009
Posts: 10
Reputation: 0
Default Re: SAMP (0.3?)Question

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

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

Code:
	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.
Marcus09 is offline  
Old 04/09/2009, 07:14 AM   #10
Daem
Big Clucker
 
Join Date: Jul 2009
Posts: 149
Reputation: 0
Default Re: SAMP (0.3?)Question

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

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

Code:
	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
Daem is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samp 3a & 2.0x question Jay. Help Archive 2 06/06/2010 07:49 AM
New samp R5 version question.... sean5874 Help Archive 3 26/03/2010 07:06 PM
a question not releated to samp aircombat Help Archive 2 21/02/2010 01:15 AM
[Help/Question]GTA/SAMP Font? GiP_YossI General 10 05/10/2009 04:31 PM
Question about samp 0.3 benlevi General 9 21/08/2009 09:28 PM


All times are GMT. The time now is 03:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.