Advertisement
Yton

Untitled

Oct 14th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. CMD:help(playerid) {
  5. new output[2048], line[512];
  6. output[0] = EOS;
  7. new File:tmp=fopen("commands/help.txt");
  8. if(tmp) {
  9. while(fread(tmp, line, 512)) strins(output, line, strlen(output), sizeof(output));
  10. fclose(tmp);
  11. }
  12. ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "{FFFFFF}Help", output, "Ok", "[x]");
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement