Help with a command!
#5

It's not working. Whatever I say I still just get "Alright, here's the drugs."

pawn Код:
public OnPlayerText(playerid, text[])
{    
    if(IsKnocking[playerid])
    {
        if(strcmp(text,"drugs"))
        {
            SCM(playerid, -1, "Alright, here's the drugs.");
            TogglePlayerControllable(playerid,1);
        }
        else if(strcmp(text,"weapons"))
        {
            SCM(playerid, -1, "Alright, here's the weapons.");
            TogglePlayerControllable(playerid,1);
        }
        else
{
      SCM(playerid, -1, "You must type either '/knock drugs' or '/knock weapons'.");
}
        IsKnocking[playerid]--;
    }
    return 1;
}
Reply


Messages In This Thread
Help with a command! - by Chrillzen - 14.10.2013, 19:13
Re: Help with a command! - by CutX - 14.10.2013, 19:43
Re: Help with a command! - by Chrillzen - 14.10.2013, 20:01
Re: Help with a command! - by Ayumi - 15.10.2013, 01:51
Re: Help with a command! - by Chrillzen - 15.10.2013, 10:42
Re: Help with a command! - by Dragonsaurus - 15.10.2013, 10:49
Re: Help with a command! - by DaRk_RaiN - 15.10.2013, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)