samedi 14 mars 2015

Ban Length CMD

Hello, so I've searched everywhere, with no luck, to try and find a tutorial or command that might help me with what I am after.



Basically I want to make my /ban command syntax to be /ban [length] - (1w/1m/1h) [id/name] [reason].



Where:

- 1w = 1 week;

- 1m = 1 month;

- 1h = 1 hour and so on.



I am using sscanf to break down the parameters, but can't seem to find out how to make it detect the length.



Any help would be appreciated.



Thanks,

CM707




Aucun commentaire:

Enregistrer un commentaire