Wired problem in zcmd..
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
I think you need to use OnPlayerCommandRecieved. Returning 0 there will prevent the command from being performed.
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually OnPlayerCommandReceived is the correct callback.
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(!LoggedIn[playerid])
    {
        SendClientMessage(playerid,COLOR_GREEN,"You have to login first");
        return 0;
    }
    return 1;
}
Quote:
Originally Posted by Jefff
Посмотреть сообщение
Answer

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{

    if(!LoggedIn[playerid])
        return !SendClientMessage(playerid,COLOR_GREEN,"You have to login first");

    return 1;
}
lol, my bad..
i tried iggy's post in a wrong way. sorry :\
Reply


Messages In This Thread
SOLVED - by [D]ry[D]esert - 30.10.2013, 14:15
Re: Wired problem in zcmd.. - by iggy1 - 30.10.2013, 14:17
Re: Wired problem in zcmd.. - by Patrick - 30.10.2013, 14:20
Re: Wired problem in zcmd.. - by [D]ry[D]esert - 30.10.2013, 15:55
Re: Wired problem in zcmd.. - by Konstantinos - 30.10.2013, 16:01
Re: Wired problem in zcmd.. - by Jefff - 30.10.2013, 16:02
Re: Wired problem in zcmd.. - by [D]ry[D]esert - 30.10.2013, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)