Gun switching /me commands
#1

I want to make something where when you switch guns, it says Jacob_Venturas pulls his desert eagle from his holster. This applies for all guns. Can someone please give me an example, perferrably working.
Reply
#2

Here's the /me command:

pawn Код:
if(strcmp(cmdtext,"/me",true)==0)
    {
  new pName[MAX_PLAYER_NAME];
  tmp = strtok(cmdtext,idx);
  if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /me [action]");
  if(IsPlayerConnected(playerid))
  {
   GetPlayerName(playerid,pName,sizeof(pName));
   format(string,sizeof(string),"%s %s",pName,cmdtext[7]);
   SendClientMessageToAll(COLOR_WHITE,string);
     }
  return 1;
    }
Just make "COLOR_WHITE" to the color you want everyone to see it in.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)