Shortcuts on input
#1

So I'm trying to create a command
PHP код:
CMD:createeffect(playeridparams[])
{
    new 
ideffect[15];
    if(
sscanf(params"r,s[15]"ideffect))
    {
        
SendClientMessage(playeridCOLOR_GREY"USAGE: /createeffect [PON/id] [fire/lightning]");
        return 
1;
    }
    if(
strcmp(effect"fire"true) == 0)
    {
        
CreateEffect(id1);
    }
    return 
1;

Is there any way a player can just write "f", "fi", or "fir" instead of the whole word "fire"?
Reply


Messages In This Thread
Shortcuts on input - by NealPeteros - 11.02.2018, 08:47
Re: Shortcuts on input - by Gameluner - 11.02.2018, 09:09
Re: Shortcuts on input - by NealPeteros - 11.02.2018, 09:10
Re: Shortcuts on input - by RoboN1X - 11.02.2018, 10:31
Re: Shortcuts on input - by Dayrion - 11.02.2018, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)