{help} /help
#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


Messages In This Thread
{help} /help - by MatthewGarrowo - 26.03.2010, 10:05
Re: {help} /help - by Carlton - 26.03.2010, 10:08
Re: {help} /help - by MatthewGarrowo - 26.03.2010, 10:40
Re: {help} /help - by MatthewGarrowo - 26.03.2010, 10:43
Re: {help} /help - by Rac3r - 26.03.2010, 10:46
Re: {help} /help - by Carlton - 26.03.2010, 10:47
Re: {help} /help - by MatthewGarrowo - 26.03.2010, 10:47
Re: {help} /help - by Flake. - 26.03.2010, 10:53

Forum Jump:


Users browsing this thread: 4 Guest(s)