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

pawn Код:
CMD:kill(playerid, params[])
{
    if(sscanf(params, "d", params[0])) return SetPlayerHealth(playerid, 0.0);
    SetPlayerHealth(params[0], 0.0);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)