Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/nyan", cmdtext, true, 10) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://205.196.122.6/im9v6fjbyhog/dc3crb5jma6m83k/Nyan+Cat+%5Boriginal%5D.mp3");
- SendClientMessage(playerid, 0x42F3F198, "Type /stopmusic to stop music.");
- return 1;
- }
- if (strcmp("/stopmusic", cmdtext, true, 10) == 0)
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, 0x42F3F198, "You have stopped your music!.");
- return 1;
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement