[REQ] Walkie Talkie
#1

I'm requesting help in scripting walkie talkie, with such commands like /setfreq etc.
Reply
#2

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

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

Sorry but there is only one command /setfrequency but I'll need the whole system like /wt [text]
Reply
#5

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

He added the Walkie talkie talk .. Check "W" ..
Reply
#7

Steal all of my ideas from my server...
Reply
#8

Quote:
Originally Posted by CalgonX
Steal all of my ideas from my server...
No one is stealing ideas from your low life server?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)