How can i make a cmd with optional options?
#5

I tried this...
It wont work. When I type /kill 0 it kills id 0, but when I type /kill nothing happens. Same with Logic_'s script too, it just works with /kill (id)

PHP код:
CMD:kill(playeridparams[])
{
    new 
targetid;
    if(
sscanf(params"U"targetid)) {
        return 
SetPlayerHealth(playerid0);
    }
    
    
SetPlayerHealth(targetid0);
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)