Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. CMD:adban(playerid, params[])
  2. {
  3. new temps, c;
  4. if(isnull(params)) return SCMUsage(playerid, "/adban [Utilisateur/ID] [Durée: *m/*h/*j");
  5. if(sscanf(params,"udcs[255]",id, temps, c, r)) return SCMUsage(playerid, "/SCMUsage");
  6. if(sscanf(duree, "dc", temps, c))
  7. switch(c)
  8. {
  9. case 'm': temps *= 60;
  10. case 'h': temps *= 3600;
  11. case 'j': temps *= 86400;
  12. default: return SCM(playerid, -1, ""COL_RED"[ERREUR]: "COL_WHITE" [m]: Minutes | [h]: Heures | [j]: Jours");
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement