08.12.2009, 14:38
Код:
public OnPlayerText(playerid, text[]) { if( muted[playerid] == 1) if(strlen(text) > 0) SendClientMessage(playerid,COLOR_DARKRED, "You are temporarily muted."); return 1; }
public OnPlayerText(playerid, text[]) { if( muted[playerid] == 1) if(strlen(text) > 0) SendClientMessage(playerid,COLOR_DARKRED, "You are temporarily muted."); return 1; }
public OnPlayerText(playerid, text[])
{
if(muted[playerid] == 1)
{
SendClientMessage(playerid, COLOR_DARKRED, "You are temporarily muted.");
return 0;
}
return 1;
}
stock Admin(msg[]) { for(new i 0; i<GetMaxPlayers(); i++ { if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,white,msg); } }
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; }
new
myArray[50];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s used /setskin command.", myArray);
Admin(myArray);
Originally Posted by Sami_
Код:
stock Admin(msg[]) { for(new i 0; i<GetMaxPlayers(); i++ { if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,white,msg); } } |
stock Admin(msg[])
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i, white, msg);
}
}