{help} /help
#1

how do i make a /help i been looking for tuts for along time i only found a couple but none on /help can anyone help
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
   if(!strcmp(cmdtext, "/help", true)) {
     // Your code here.
   }
}
Reply
#3

thanks
Reply
#4

actually i dont even kno how to add these type of things can you send me a tut or show me how plz?
Reply
#5

https://sampwiki.blast.hk/wiki/OnPlayerCommandText

https://sampwiki.blast.hk/wiki/Main_Page
Reply
#6

Read https://sampwiki.blast.hk/wiki/ if you don't know what to add or how to add a code inside the command.
Reply
#7

thanks
Reply
#8

Quote:
Originally Posted by MatthewGarrowo
thanks
i just typed up a whole tut and its all answered meh wth
i can try
so u want to know about messages conserning
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
   if(!strcmp(cmdtext, "/help", true)) {
     // Your code here.
   }
}
you can use a number of diffrent ways to get a message out via command

you can use smth like this

pawn Код:
if(strcmp("/noob", cmdtext, true) == 0)
    {
        SendClientMessage(playerid, COLOR_GREEN, "i see your new to the server");
        return 1;
    }
this will just give a simple message to the player in main chat with is GREEN

or you can make smth like this

pawn Код:
if(strcmp("/noob", cmdtext, true) == 0)
    {
         GameTextForPlayer(killerid,"~g~ i see your new",1200,3);
        return 1;
    }
this will send a message to the player in GREEN on the screen you can change the time / Text using this part
pawn Код:
1200,3
thats in milli seconds

i hope this helps you understand you can also display textdraws through commands like this

pawn Код:
if (strcmp("/noob", cmdtext, true) == 0)
    {
     TextDrawShowForPlayer(playerid,welcome1);
    return 1;
    }
i hope this is what you mean by Understanding :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)