SA-MP Forums Archive
How to make a Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: How to make a Command (/showthread.php?tid=137220)



How to make a Command - UnityServer - 28.03.2010

Hello People... i need some help, can anyone make that command for me please

I will explain all here:

so lets start...

I want a command for Admin's level's 5 + , so they cant use /setstat but if they can use like a command, /givehousekey [PlayerID] [Number]
and Same for /givebizkey and same for /givesbizkey....

i heard its possible to mkae it, but i dont know how, if anyone know please help me

and... instead od makin /setstat you do a specific action ist simplier then /setstat, just analyze it and think of what does /give..... has to do...


Help me people Thanks



Re: How to make a Command - Souvlaki - 28.03.2010

http://forum.sa-mp.com/index.php?topic=144062.0


Re: How to make a Command - UnityServer - 28.03.2010

Quote:
Originally Posted by Habib™
i dont get it what you mean with that link, anyway people please post a script here thanks )))


Re: How to make a Command - CJ101 - 28.03.2010

Код:
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
next time post in scripting discussion. This has nothing to do with the sa-mp client.


Re: How to make a Command - Andy_McKinley - 28.03.2010

You can use dcmd (best one), strcmp and zcmd to make a command and admin command.


Re: How to make a Command - Burridge - 28.03.2010

Quote:
Originally Posted by DarkPhoenix
You can use dcmd (best one).
I beg to differ, zcmd is a lot faster, and more efficient. (Just pointing it out). (Don't get me wrong though, dcmd is good).


Re: How to make a Command - VirSpectorX - 28.03.2010

I think you're using a Godfather Game Mode or other Godfather Edited Game Mode (Such as Night Life Roleplay, Los Angeles Roleplay, etc).

If i am right, you should ask for help in this thread: http://forum.sa-mp.com/index.php?topic=24634.0