OnPlayerText
#3

thanks it worked and yes
Код:
stock Admin(msg[])
{
  for(new i 0; i<GetMaxPlayers(); i++
  {
    if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,white,msg);
  }
}

i want to use it in this command and when the player types this so for rcon Admins print "someone used /setskin"
but i doesnt know how to ?
Код:
if(strcmp(cmd, "/setskin", true) == 0) {
    new tmp[256];

    if(!cmdtext[8])return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /setskin [skinid]");
    tmp = strtok(cmdtext, idx);
		SetPlayerSkin(playerid,strval(tmp));
			SendClientMessage(playerid, COLOR_YELLOW, "Skin Changed.");
	  return 1;
	}
Reply


Messages In This Thread
OnPlayerText - by _Sami_ - 08.12.2009, 14:38
Re: OnPlayerText - by Correlli - 08.12.2009, 14:40
Re: OnPlayerText - by _Sami_ - 08.12.2009, 14:49
Re: OnPlayerText - by Correlli - 08.12.2009, 15:03
Re: OnPlayerText - by _Sami_ - 08.12.2009, 15:30
Re: OnPlayerText - by Correlli - 08.12.2009, 15:31

Forum Jump:


Users browsing this thread: 2 Guest(s)