"Bought objects?", audio stream question? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: "Bought objects?", audio stream question? (
/showthread.php?tid=428671)
"Bought objects?", audio stream question? -
davve95 - 06.04.2013
Hi!
1.
How can I know if a player have bought anything so he couldn't
use a thing that he haven't bought...
This was asked in another topic by me but I didn't get it to fully..
So I re-ask it.
As I anyway have some other things to ask...
2.
How should I link the web radio?, for a audio stream?.
Any good web radio site with alot of genres?.
I think there were some more questions but can't rember ^^.
Thanks!.
Re: "Bought objects?", audio stream question? -
RajatPawar - 06.04.2013
1) Use a bool variable. Consider an object like a pen.
pawn Код:
new bool:has_a_pen[ MAX_PLAYERS ] = false;
CMD:buyapen(playerid)
{
if( has_a_pen[ playerid] == true ) SendClientMessage( .. "You already have a pen." );
if( Money < ... )
else
{
has_a_pen[ playerid] = true;
}
return 1;
}
2nd) PlayAudioStreamForPlayer
Re: "Bought objects?", audio stream question? -
davve95 - 06.04.2013
Okay thanks!.
But I wounder in PlayAudioStreamForPlayer (That was what I meant)
But said abit wrong, how should I paste the link?..
From a web radio I mean...
Not full sure..
Edit:
Problem fixed.