Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ////////////////////////////////////////////////////////////////////
- / ****** ***** ****** ***** ****** /
- / * * * * * * * /
- / Made by: * * * **** * * **** /
- / **** ***** * * * * /
- / * * * * * * * /
- / * * * ****** ***** ****** /
- ////////////////////////////////////////////////////////////////////
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- public OnFilterScriptInit()
- {
- print("\n**************************************");
- print(" This Filterscript is made by Frede");
- print("**************************************\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- SendClientMessageToAll(0xFFFFAA, "SOMEBODY IS TRYING TO REMOVE /problem STOP HIM!!!!!!!!");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFFFFAA, "If you got a problem, use /problem");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2222)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SpawnPlayer(playerid);
- }
- if(listitem == 1)
- {
- SeePlayers(playerid);
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 2223, DIALOG_STYLE_INPUT, "Problems", "Enter your problem below", "NEXT", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == 2223)
- {
- if(response)
- {
- new File:ftw=fopen("Problems.txt", io_append);
- if(ftw)
- {
- new mytext[256], plstring[256], plname[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, plname, sizeof(plname));
- strcat(mytext, "plname: ");
- strcat(mytext, inputtext);
- strcat(plstring, plname);
- strcat(plstring, " have a problem: ");
- strcat(plstring, inputtext);
- SendClientMessageToAll(0xFFFFFFFF,plstring);
- new mystring[30];
- format(mystring, 30, "%s\r\n", mytext);
- fwrite(ftw, mystring);
- fclose(ftw);
- }
- }
- return 1;
- }
- return 0;
- }
- CMD:problem(playerid, params[])
- {
- ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Problems", "Spawn problem\nCant see names\nNon of thease", "Next", "close");
- return 1;
- }
- stock SeePlayers(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new myname[128], string2[256];
- GetPlayerName(i, myname, sizeof(myname));
- format(string2, sizeof(string2),"%s", myname);
- new Text3D:label = Create3DTextLabel(string2, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
- SendClientMessage(playerid, 0xFFFFFFFF, "You have putted a name on everybody");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement