Help me in this
#2

Continue the sequence i just gave but using what you need! It's simple, the way below:
PHP код:
public OnPlayerText(playeridtext[])
{
    if (!
strcmp(text"show burg"true)) 
    {
        
// Code here
         
return 0// Not allowing him to display the message on the open chat
    
}

EDIT ;

Sorry, i didn't read what you wanted quite carefully. Below is maybe what you need. Also, the one with OnPlayerText seems to be more stylish but it's your choice!

BELOW CODE IS UNTESTED!

PHP код:
CMD:test(playeridparams[])
{
    new 
str[16];
    if(
sscanf(params"s[16]"str)) return SendClientMessage(playerid, -1"Usage: /test [params]");
    if (!
strcmp(str"burg"true)) 
    {
        
// Code here
    
}
    return 
1;

Reply


Messages In This Thread
Help me in this - by Krauser123 - 14.02.2017, 16:11
Re: Help me in this - by AjaxM - 14.02.2017, 16:16
Re: Help me in this - by Krauser123 - 14.02.2017, 16:38
Re: Help me in this - by AjaxM - 14.02.2017, 16:40
Re: Help me in this - by X337 - 14.02.2017, 16:57
Re: Help me in this - by Dayrion - 14.02.2017, 17:58
Re: Help me in this - by Krauser123 - 14.02.2017, 18:37
Re: Help me in this - by Krauser123 - 15.02.2017, 09:41
Re: Help me in this - by Vince - 15.02.2017, 10:35
Re: Help me in this - by Krauser123 - 15.02.2017, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)