Advertisement
Phoenix-

Host Name Changer [In Game]

Nov 2nd, 2014
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.37 KB | None | 0 0
  1. /*
  2. Please Don't Change Credits
  3. Please Don't Change Credits
  4. Please Don't Change Credits
  5. Please Don't Change Credits
  6. Please Don't Change Credits
  7. Please Don't Change Credits
  8. Please Don't Change Credits
  9. Please Don't Change Credits
  10. */
  11.  
  12. // Random Fun Dice
  13. // Forum Link :
  14. // This FilterScript Created By [Phoenix-]
  15. // @ Yahoo : Mhmmd480@Yaoo.Com
  16. // @ Skype : Mamad.Venom
  17.  
  18. #include <a_samp>
  19. #include <sscanf>
  20.  
  21. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  22.  
  23. #if defined FILTERSCRIPT
  24.  
  25. public OnFilterScriptInit()
  26. {
  27.     print("\n--------------------------------------");
  28.     print(" Host Name Changer [In Game] By Phoenix");
  29.     print("--------------------------------------\n");
  30.     return 1;
  31. }
  32.  
  33. public OnFilterScriptExit()
  34. {
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerCommandText(playerid, cmdtext[])
  39. {
  40.     dcmd(host,4,cmdtext);
  41.     return 0;
  42. }
  43.  
  44. dcmd_host(playerid,params[])
  45. {
  46.     new string[128],hn[128];
  47.     if(sscanf(params, "s[128]",hn))
  48.     {
  49.         SendClientMessage(playerid,-1,"USAGE: /Host (Host Name)");
  50.         return 1;
  51.     }
  52.     ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"{FF0000}Succesfully","{FFFFFF}Thanks For Using This FilterScript","Ok","");
  53.     format(string,sizeof(string),"hostname %s",hn);
  54.     SendRconCommand(string);
  55.     return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement