[REQ]Walkie Talkie, pls help me to create it :D
#1



how i can make like this ?

/setfreq [1000 - 9999]

/wt [text]

i did it like this

Код:
new Float:pFrequency[MAX_PLAYERS];
  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],"wt",true,2))
  {
    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;
}



pls help me
Reply
#2

whats the problem?
Reply
#3

when i type /setfreq 1234

there is nothing happen
,,,

please remade what i make.. >.<
Reply
#4

do you understand that you just created 3 requests? Do you think that we will create your gamemode for you?
Reply
#5

LOL.. just help me.. i need it >.<

i want to learn how but i need the example
hard to try from new.
Reply
#6

please anyone.. help me with this thing
Reply
#7

Try googling samp radio script or walkie talkie system. I found a cupple but i lost the link. They did appear to be ligit, however i was searching for one that automaticly sets the channel, kinda like a team chat.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)