How to make a Command
#1

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

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

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

Код:
	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.
Reply
#5

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)