SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 19/05/2014, 05:28 PM   #1
Banga
Little Clucker
 
Join Date: Nov 2013
Posts: 13
Reputation: 13
Default Personal Music

Hello ,


I'm french, sorry for my english .


This tutoriel is going to learn you has to create an personal music


Requirement:

- ZCMD

- SSCANF

pawn Code:
COMMAND:music(playerid, params[])  // We create the command
{
      new link[128]; // We put new link 128, 128 corresponding among maximum character
      if(sscanf(params,"s[128]",link)) // Whe use sscanf for this tutoriel
      {
      SendClientMessage(playerid, COLOR_CMD, "/music link.mp3"); // We create the command
      }
      PlayAudioStreamForPlayer(playerid,link); // We throw the audiostream which it will have use in the command
      SendClientMessage(playerid, COLOR_ADMIN, "ENJOY"); // Enjoy ;)
      return 1;
}

It's my first tutorial, sorry
Edit
__________________
Joueur sur SARPG est fier d'y ętre !


Site: http://www.sarpg.fr
Forum: http://www.sarpg.fr/forum/

Apprentissage du Pawn.


Last edited by Banga; 20/05/2014 at 03:20 PM.
Banga is offline   Reply With Quote
Old 19/05/2014, 06:52 PM   #2
dusk
High-roller
 
dusk's Avatar
 
Join Date: Jul 2008
Posts: 1,113
Reputation: 46
Default Re: Personal Music

If this is so players could play their own songs, why wouldn't they just play it on their computer? Why would they go through all of this?
dusk is offline   Reply With Quote
Old 19/05/2014, 07:04 PM   #3
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,304
Reputation: 2184
Default Re: Personal Music

nice tutorial

I just learned nothing and understood even less
__________________
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 20/05/2014, 11:40 AM   #4
Joeyer5
Little Clucker
 
Join Date: Jul 2011
Location: 's-Hertogenbosch, The Netherlands
Posts: 28
Reputation: 0
Default Re: Personal Music

Even though I presume the code is good, in a tutorial you explain why you use certain code.
Joeyer5 is offline   Reply With Quote
Old 20/05/2014, 06:13 PM   #5
Banga
Little Clucker
 
Join Date: Nov 2013
Posts: 13
Reputation: 13
Default Re : Personal Music

Edit
__________________
Joueur sur SARPG est fier d'y ętre !


Site: http://www.sarpg.fr
Forum: http://www.sarpg.fr/forum/

Apprentissage du Pawn.

Banga is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we get a music like Gta San andreas Music manishmulchandani11 Scripting Help 0 17/10/2012 04:27 PM
[MUSIC]Spanish Music SuperMarioRol Everything and Nothing 0 20/09/2012 09:26 PM
Car personal saringan_cs Scripting Help 8 10/12/2011 07:02 PM


All times are GMT. The time now is 07:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.