Advertisement
Peppery

nyan cat audio for samp

Jan 10th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <a_samp>
  2. #if defined FILTERSCRIPT
  3.  
  4.  
  5. public OnPlayerCommandText(playerid, cmdtext[])
  6. {
  7. if (strcmp("/nyan", cmdtext, true, 10) == 0)
  8. {
  9. PlayAudioStreamForPlayer(playerid, "http://205.196.122.6/im9v6fjbyhog/dc3crb5jma6m83k/Nyan+Cat+%5Boriginal%5D.mp3");
  10. SendClientMessage(playerid, 0x42F3F198, "Type /stopmusic to stop music.");
  11. return 1;
  12. }
  13. if (strcmp("/stopmusic", cmdtext, true, 10) == 0)
  14. {
  15. StopAudioStreamForPlayer(playerid);
  16. SendClientMessage(playerid, 0x42F3F198, "You have stopped your music!.");
  17. return 1;
  18. }
  19. return 0;
  20. }
  21. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement