"Bought objects?", audio stream question?
#1

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!.
Reply
#2

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
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)