Advertisement
KaLu17

[pawno.pl] -> #29044

Nov 11th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.65 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. new obiekt;
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.          obiekt = CreateObject(14806, 1084.3125, -1259.8549, -2.3806, 0.0000, 0.0000, 90.0000);
  9.          return 1;
  10. }
  11.  
  12. CMD:stream(playerid, params[])
  13. {
  14.         if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1084.3125, -1259.8549, -2.3806))
  15.         return SendClientMessage(playerid, -1, "Nie jesteś w pobliżu obiektu");
  16.  
  17.     if(strlen(params) == 0)
  18.         return SendClientMessage(playerid, -1, "Podaj adres URL.");
  19.  
  20.         new Float:x, Float:y, Float:z;
  21.         GetObjectPos(obiekt, x, y, z);
  22.         PlayAudioStreamForPlayer(playerid, params, x, y, z, 50.0, 1);
  23.         return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement