How to make commands and where?
#1

Hello! Everyone is telling me to make commands via zcmd. Ok I downloaded it. Can any one tell me now what I have to do to create commands and where should I start it from?

Regards:

Begineer
Reply
#2

You should start by reading [https://sampwiki.blast.hk/].
Reply
#3

Is this thread about how to use ZCMD? If so, then search! ****** it: "samp zcmd tutorials" and you're going to find many results.
Reply
#4

Just tell me under which text i create commands
For Example:
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}

Under it or where I start to make commands??

CMD: "kick" where do I start working from?
Reply
#5

Quote:
Originally Posted by MAFIAWARS
Посмотреть сообщение
Just tell me under which text i create commands
For Example:


Under it or where I start to make commands??

CMD: "kick" where do I start working from?
Don't be lazy. If you read atleast a tutorial, all of your questions will be solved.

PS: This is where I learned how to use ZCMD + sscanf: https://sampforum.blast.hk/showthread.php?tid=280476
Reply
#6

Well find this and it basically gives you the format..

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

Reply
#7

Quote:
Originally Posted by SampGaming
Посмотреть сообщение
Well find this and it basically gives you the format..
He wants to use ZCMD, not the strcmp..

Don't use this callback at all, remove it.

Commands from ZCMD needs to be out of any callback.
Reply
#8

Just telllllllllllllll me Where to start??
From where I write to start CMD: heal etc.?
Reply
#9

Everywhere you want but need to be OUTSIDE any callback (if you want you can write them at bottom or top of your fs/gm)
Reply
#10

Thanks doreto, But can you give me an Example?

Just post here a command of /heal
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)