Client Commands - 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: Client Commands (
/showthread.php?tid=183005)
Client Commands -
ihatetn931 - 13.10.2010
Is there a way to call client commands in the scirpt? For example I have a command that uses over 10 lines. Now say when i type that command it changes the pagesize to 20 then after a certian amount of time it changes back to 10 again
I type
/level
pagesize changes to 20
timercounts
pagesize changes back to 10
I know there is SendRconCommand, But is there somthing like that for client commands?
Basacilly I just want the pagesize to set without having to type /pagesize
Re: Client Commands -
CrucixTM - 13.10.2010
I don't think so, no.
If there was, everyone would SendClientCommand(playerid, "/q") when kicking somebody.
Re: Client Commands -
Calgon - 13.10.2010
No, client-side commands are client-side only. You cannot call them from the server.
Re: Client Commands -
ihatetn931 - 13.10.2010
Thanks for the replies. It would be nice if you could tho
Re: Client Commands -
Calgon - 13.10.2010
Would you really like someone to be able to control your FPS limit or make you '/q' from the server at any time? That's quite a lot of room for abuse in those 2 client-side commands alone.
Re: Client Commands -
Scenario - 13.10.2010
Quote:
Originally Posted by Calgon
Would you really like someone to be able to control your FPS limit or make you '/q' from the server at any time? That's quite a lot of room for abuse in those 2 client-side commands alone.
|
Not to mention screwing with your pagesize.
Re: Client Commands -
ihatetn931 - 13.10.2010
Well woulnd't it only set it for the client that types the command and not everyone esle?
Re: Client Commands -
Calgon - 13.10.2010
Quote:
Originally Posted by ihatetn931
Well woulnd't it only set it for the client that types the command and not everyone esle?
|
Yes, but did you read what I posted at all?
Re: Client Commands -
ihatetn931 - 13.10.2010
Yes, but anything is abuseable
Re: Client Commands -
Calgon - 13.10.2010
Quote:
Originally Posted by ihatetn931
Yes, but anything is abuseable
|
Not to the extent where someone could potentially crash your computer (at least in SA-MP).