HELP! **READ PLEASE** NEED ASAP
#1

Hello, I was just wondering how i could do this,

So i am using incognitos audio plugin thing but, i want like when a player typed the command /radio it types another command in response (/playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0)

I am just wondering if there is a possible way to do so because that would be really cool, if someone could help me on this issue.

Thanks in advance!
Reply
#2

Please dont make everything in your title ALL CAPITAL LETTERS also "Help! **READ PLEASE** NEED ASAP" isnt at all descriptive
Reply
#3

Inside the /radio command, type
pawn Код:
OnPlayerCommandText(playerid, "/playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0");
EDIT: Without the URL tags, the forums added them
Reply
#4

Thank you so much Grim_ ! I really didn't think it was that easy XD Anyways you solved my problem of the day. Congratz
Reply
#5

omg, just rename /radio cmd to /playstreamed
Reply
#6

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
omg, just rename /radio cmd to /playstreamed
Voldemort, Im trying to make the command /radio so it is more player accessible. If you just reply with useless advice, Please don't

Edit: Just found the problem with the URL thing XD
Reply
#7

lol i once hacked streamed radio into original game radio. I guess bit rate sucked, cause i didn't understand nearly anything that i heard.
Reply
#8

If you want them to do the same exact things, you could just do
pawn Код:
if(strcmp(cmdtext, "/radio", true) == 0 || strcmp(cmdtext, "/playstreamed", true) == 0)
It checks if either "/radio" or /playstreamed were typed.
Reply
#9

Hmm, It won't work, Like when i type /radio it dosent do a thing. I want it to type /playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0 in reponse but for some reason it wont work, Here ill send you the command i got at the moment:

pawn Code:

if(strcmp(cmdtext, "/radio", true) == 0)
{
OnPlayerCommandText(playerid, "/playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0");
return 1;
}
Reply
#10

Quote:
Originally Posted by gangestergta
Посмотреть сообщение
Hmm, It won't work, Like when i type /radio it dosent do a thing. I want it to type /playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0 in reponse but for some reason it wont work, Here ill send you the command i got at the moment:

pawn Code:

if(strcmp(cmdtext, "/radio", true) == 0)
{
OnPlayerCommandText(playerid, "/playstreamed http://64.150.181.14:14156/listen.pls 0 0 0 0");
return 1;
}
That wouldn't work.


So you want them to receive a message or actually play it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)