[REQUEST] command /o
#2

using dcmd
pawn Код:
dcmd_o(playerid, params[])
{
   new string[128], pname[MAX_PLAYER_NAME];
   if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "(usage) /o (Message)");

   GetPlayerName(playerid,pname,sizeof(pname));
   format(String, sizeof(String), "[GLOBAL] %s(%d) says: %s", pname, playerid, params);
   SendClientMessageToAll(0x33AA33AA, string);
   return 1;
}
Didn't test it, but it should be working
Reply


Messages In This Thread
[REQUEST] command /o - by kurniarocki - 19.02.2014, 11:28
Re: [REQUEST] command /o - by Vanter - 19.02.2014, 11:38
Re: [REQUEST] command /o - by kurniarocki - 19.02.2014, 11:47
Re: [REQUEST] command /o - by kurniarocki - 19.02.2014, 11:50
Re: [REQUEST] command /o - by kurniarocki - 19.02.2014, 12:41
Re: [REQUEST] command /o - by kurniarocki - 23.02.2014, 07:23
Re: [REQUEST] command /o - by HitterHitman - 23.02.2014, 08:06
Re: [REQUEST] command /o - by kurniarocki - 23.02.2014, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)