Two good commands - Please help, how can I make them
#2

this is /cb
pawn Код:
if(strcmp(cmd, "/cb", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
    new string[128];
    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, COLOR_COLOR, "USAGE: /cb [radio chat]");
      return 1;
    }
    format(string, sizeof(string), "CB Radio: %s says: %s, sendername, result);
    SendClientMessageToAll(COLOR_COLOR,string);
    printf("
%s", string);
    return 1;
  }
  return 1;
}
And search for /takeoff and /land.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)