Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- Please Don't Change Credits
- */
- // Random Fun Dice
- // Forum Link :
- // This FilterScript Created By [Phoenix-]
- // @ Yahoo : Mhmmd480@Yaoo.Com
- // @ Skype : Mamad.Venom
- #include <a_samp>
- #include <sscanf>
- #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
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Host Name Changer [In Game] By Phoenix");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(host,4,cmdtext);
- return 0;
- }
- dcmd_host(playerid,params[])
- {
- new string[128],hn[128];
- if(sscanf(params, "s[128]",hn))
- {
- SendClientMessage(playerid,-1,"USAGE: /Host (Host Name)");
- return 1;
- }
- ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"{FF0000}Succesfully","{FFFFFF}Thanks For Using This FilterScript","Ok","");
- format(string,sizeof(string),"hostname %s",hn);
- SendRconCommand(string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement