Commands, some small help ...
#7

Quote:
Originally Posted by kirollos
Посмотреть сообщение
maybe don't use strcmp D:

i will write something. i don't know if it will work
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success) // this check if the command is right.
    {
        if(IsPlayerInAnyDynamicArea(playerid)) return 0; // if player in any dynamic area , the command fail
    }
    return 1;
}
Yes, but i don't want to be allowed that commands ... .

The commands don't execute if i type /vw and i am in a dynamic area for exemple ... but if i type /vw(Space) the command will execute ... and this think i don't want
Reply


Messages In This Thread
Commands, some small help ... - by Edvin - 16.05.2012, 15:51
Re: Commands, some small help ... - by Ballu Miaa - 16.05.2012, 15:53
Re: Commands, some small help ... - by Edvin - 16.05.2012, 16:00
Re: Commands, some small help ... - by MichaelProPlayer - 16.05.2012, 16:14
Re: Commands, some small help ... - by Kirollos - 16.05.2012, 16:19
Re: Commands, some small help ... - by Kirollos - 16.05.2012, 16:22
Re: Commands, some small help ... - by Edvin - 16.05.2012, 16:56

Forum Jump:


Users browsing this thread: 6 Guest(s)