SLOVED
#1

SLOVED
Reply
#2

pawn Код:
#include <a_samp>
#define TEAM_HUMAN_COLOR 0x33AA33AA

public OnPlayerCommandText(playerid, cmdtext[])
{
 new cmd[256];

 if(strcmp(cmd, "/r", true) == 0)
 {


  if(IsPlayerConnected(playerid))
  {
    new string[128], sendername[MAX_PLAYER_NAME], idx;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
      idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
      result[idx - offset] = cmdtext[idx];
      idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
      SendClientMessage(playerid,0x33AA33AA, "USAGE: /r [radio chat]");
      return 1;
    }
    format(string, sizeof(string), "CB Radio: %s says: %s", sendername, result);
    SendClientMessageToAll(0x33AA33AA,string);
    printf("%s", string);
    return 1;
    }
 }
 return 0;
 }
Reply
#3

thenks finaly someone thath helps noob scipter like me
Reply
#4

No problem lol
Reply
#5

Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..
Reply
#6

Quote:
Originally Posted by Compton's Eazy E
Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..
I agree
Reply
#7

Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
Quote:
Originally Posted by Compton's Eazy E
Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..
I agree
Yeah just put [Solved] then the original name of the question/topic
Reply
#8

Unless they look for sloved in search...
Reply
#9

Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Unless they look for sloved in search...
No-one would do that lol
Reply
#10

Quote:
Originally Posted by ►Peter Corneile◄ [hugu-hosting.co.uk
]
Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Unless they look for sloved in search...
No-one would do that lol
Especially when it's misspelt. lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)