[REQ] Walkie Talkie - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [REQ] Walkie Talkie (
/showthread.php?tid=125770)
[REQ] Walkie Talkie -
Oggle McFoggle - 05.02.2010
I'm requesting help in scripting walkie talkie, with such commands like /setfreq etc.
Re: [REQ] Walkie Talkie -
Joe Staff - 05.02.2010
Ok, despite the fact you should have place this in the Script Request Thread. I'm going to make it.
pawn Код:
new Float:pFrequency[MAX_PLAYERS];
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext[1],"setfreq",true,7))
{
new tmp[64];
format(tmp,32,"%.01f",floatstr(cmdtext[9]));
pFrequency[playerid]=floatstr(tmp);
format(tmp,64,"Your ferquency is now %s",tmp);
return 1;
}
if(!strcmp(cmdtext[1],"w",true,1))
{
if(pFrequency[playerid]==0)return SendClientMessage(playerid,0xFF0000FF,"Use /SetFreq <Frequency> first!");
new tmp[150];
GetPlayerName(playerid,tmp,24);
format(tmp,150,"*[%.01F]%s: %s",pFrequency[playerid],tmp,cmdtext[3]);
for(new ply;ply<MAX_PLAYERS;ply++)
{
if(pFrequency[playerid]==pFrequency[ply])SendClientMessage(ply,0xEE3333FF,tmp);
}
return 1;
}
return 0;
}
Re: [REQ] Walkie Talkie -
Oggle McFoggle - 05.02.2010
Quote:
Originally Posted by Joe Staff
Ok, despite the fact you should have place this in the Script Request Thread. I'm going to make it.
pawn Код:
new Float:pFrequency[MAX_PLAYERS]; public OnPlayerCommandText(playerid,cmdtext[]) { if(!strcmp(cmdtext[1],"setfreq",true,7)) { new tmp[64]; format(tmp,32,"%.01f",floatstr(cmdtext[9])); pFrequency[playerid]=floatstr(tmp); format(tmp,64,"Your ferquency is now %s",tmp); return 1; } if(!strcmp(cmdtext[1],"w",true,1)) { if(pFrequency[playerid]==0)return SendClientMessage(playerid,0xFF0000FF,"Use /SetFreq <Frequency> first!"); new tmp[150]; GetPlayerName(playerid,tmp,24); format(tmp,150,"*[%.01F]%s: %s",pFrequency[playerid],tmp,cmdtext[3]); for(new ply;ply<MAX_PLAYERS;ply++) { if(pFrequency[playerid]==pFrequency[ply])SendClientMessage(ply,0xEE3333FF,tmp); } return 1; } return 0; }
|
Thanks a lot, going to try it out.
Re: [REQ] Walkie Talkie -
Oggle McFoggle - 05.02.2010
Sorry but there is only one command /setfrequency but I'll need the whole system like /wt [text]
Re: [REQ] Walkie Talkie -
Torran - 05.02.2010
Quote:
Originally Posted by Oggle McFoggle
Sorry but there is only one command /setfrequency but I'll need the whole system like /wt [text]
|
He gave you that because thats all you asked for

For more post in Script Request Topic
http://forum.sa-mp.com/index.php?topic=144062.0
Re: [REQ] Walkie Talkie -
Julian2574 - 05.02.2010
He added the Walkie talkie talk .. Check "W" ..
Re: [REQ] Walkie Talkie -
Calgon - 05.02.2010
Steal all of my ideas from my server...
Re: [REQ] Walkie Talkie -
Daniel_June - 05.02.2010
Quote:
Originally Posted by CalgonX
Steal all of my ideas from my server... 
|
No one is stealing ideas from your low life server?
Re: [REQ] Walkie Talkie -
Calgon - 05.02.2010
Quote:
Originally Posted by Daniel_June
Quote:
Originally Posted by CalgonX
Steal all of my ideas from my server... 
|
No one is stealing ideas from your low life server?
|
I don't recall seeing any server with the exact same commands for Walkie Talkies, and the exact same player who got banned recently.
Re: [REQ] Walkie Talkie -
Julian2574 - 05.02.2010
Quote:
Originally Posted by CalgonX
Steal all of my ideas from my server... 
|
There's plenty of servers' out there with that , As mine ( Updating it until releasing to futher notice ) , LVRP ( Adam Chaprnak - Dunno if he still got it ) SFRP .. And alot more server . Please do not post this idiotical posts' Next time don't think you're server is "Unique" . Based on my mind and this post it made me take it to Worst idiotical server top list 1.