Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new URLMusic[256]
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- {
- PlayAudioStreamForPlayer(playerid, URLMusic);
- SendClientMessage(playerid, grey, ":???? ?????? ????º? ???? ?????? ?????º?");
- SendClientMessage(playerid, red, "/Saudio - ??????, /Play - ??????");
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(!strcmp(cmdtext, "/Amusic", true))
- {
- if(AviiiLevel(playerid) < 14) return SendClientMessage(playerid, -1, "{FF0000}Error Command.");
- return ShowPlayerDialog(playerid,348,DIALOG_STYLE_INPUT,"????? ?????º?",":??? ???? ?? ????? ???? ????? ??????","?????","?????");
- }
- if(!strcmp(cmdtext, "/AMusicStop", true))
- {
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) StopAudioStreamForPlayer(i);
- format(str,sizeof(str), ".????º ?? ?????º? ??? ???? %s ?????? ***", GetName(playerid));
- return SendClientMessageToAll(-1, str);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement