Score = Money + /me command + Car System
#9

On top

pawn Код:
#define COLOR_WHITE 0xFFFFFFAA
Somewhere in your script

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
Under it

pawn Код:
new tmp[256];
new cmd[256];
cmd = strtok(cmdtext, idx)
The 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;
}
Reply


Messages In This Thread
Score = Money + /me command + Car System - by Puzi - 30.03.2009, 19:19
Re: Score = Money + /me command + Car System - by Dujma - 30.03.2009, 19:21
Re: Score = Money + /me command + Car System - by tom_jonez - 30.03.2009, 19:24
Re: Score = Money + /me command + Car System - by Weed_ - 30.03.2009, 19:25
Re: Score = Money + /me command + Car System - by Puzi - 30.03.2009, 20:04
Re: Score = Money + /me command + Car System - by Divine - 30.03.2009, 20:08
Re: Score = Money + /me command + Car System - by Puzi - 30.03.2009, 20:14
Re: Score = Money + /me command + Car System - by Pyrokid - 30.03.2009, 20:16
Re: Score = Money + /me command + Car System - by Weed_ - 31.03.2009, 10:27
Re: Score = Money + /me command + Car System - by basker - 01.04.2009, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)