/me (need help)
#2

pawn Код:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
  {
    if(cmdtext[3] == 0) {
      SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
      return 1;
    }
    new str[24];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "[ ! ] %s %s", str, cmdtext[4]);
    SendClientMessageToAll(GetPlayerColor(playerid), str);
    return 1;
  }
pawn Код:
if(strcmp(cmdtext, "/adminonduty", true) == 0) if(Admin[playerid] == 1)
    {
    TempColor[playerid] = GetPlayerColor(playerid);
    format(tmp,sizeof(tmp),"Admin %s is now on duty.",Name(playerid));
    SendClientMessageToAll(COLOR_RED,tmp);
    SetPlayerColor(playerid, COLOR_RED);
    return 1;
}
    if(strcmp(cmdtext, "/adminoffduty", true) == 0) if(Admin[playerid] == 1)
    {
    SetPlayerColor(playerid,TempColor[playerid]);
    format(tmp,sizeof(tmp),"Admin %s is now off duty.",Name(playerid));
    SendClientMessageToAll(COLOR_RED,tmp);
    return 1;
}
Reply


Messages In This Thread
/me (need help) - by coole210 - 25.06.2009, 16:15
Re: /me (need help) - by zallomallo - 25.06.2009, 16:35
Re: /me (need help) - by coole210 - 25.06.2009, 19:13
Re: /me (need help) - by Serediucr - 25.06.2009, 19:20
Re: /me (need help) - by coole210 - 25.06.2009, 19:28
Re: /me (need help) - by Serediucr - 25.06.2009, 19:31
Re: /me (need help) - by zallomallo - 25.06.2009, 19:31

Forum Jump:


Users browsing this thread: 2 Guest(s)