Need help for command
#4

Quote:
Originally Posted by ultrAslan
Посмотреть сообщение
thank you and mus i add this on OnPlayerCommandText?
depends if you're using ZCMD.. Your commands like "CMD:..."?

or like this:
pawn Код:
if(strcmp(cmd, "/commandhere", true) == 0) {
If that like this above me, then use this onplayercommandtext.
pawn Код:
if(strcmp(cmd, "/changelog", true) == 0) {
{
SendClientMessage(playerid, 0xFFFFFFAA, "*****************************************");
    SendClientMessage(playerid, 0xFFFFFFAA, "Your title here"");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
*****************************************");
    return 1;
}
or

pawn Код:
else if(strcmp(cmdtext, "changelog", true) == 0)
        {
    SendClientMessage(playerid, 0xFFFFFFAA, "*****************************************");
    SendClientMessage(playerid, 0xFFFFFFAA, "Your title here"");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
* Text Here!");
    SendClientMessage(playerid, 0xFFFFFFAA, "
*****************************************");
        return 1;
    }
Don't forget to rep+
Reply


Messages In This Thread
Need help for command - by ultrAslan - 16.01.2014, 17:28
Re: Need help for command - by BarFix - 16.01.2014, 18:12
AW: Re: Need help for command - by ultrAslan - 16.01.2014, 18:36
Re: AW: Re: Need help for command - by BarFix - 16.01.2014, 19:34
AW: Re: AW: Re: Need help for command - by ultrAslan - 16.01.2014, 19:47
Re: Need help for command - by [TMS]Legena - 16.01.2014, 19:59
Re: Need help for command - by KhaledElkhourashi - 16.01.2014, 20:19
Re: Need help for command - by [TMS]Legena - 16.01.2014, 22:30
AW: Need help for command - by ultrAslan - 17.01.2014, 17:07
Re: Need help for command - by Konstantinos - 17.01.2014, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)