15.01.2014, 19:41
Quote:
Galera me ajudem, eu passei um FS de Admin meu todo pra dentro do GM
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new bool: Msgs[MAX_PLAYERS];
new cmd[256], tmp[256], string[256], MSG[128], idx, giveplayerid;
cmd = strtok(cmdtext, idx);
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) return 1;
iPlayerChatTime[playerid] = GetTickCount();
//--- FS Admin
for(new i=0; i < MAX_PLAYERS; i++)
{
//if(IsPlayerAdmin(i))
if(IsPlayerAdmin(i) || IsAdmin[i] == 1)
{
if(Msgs[i] == false)// linha do erro <<<<<<<<
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(string, sizeof(string), "[Admin] %s digitou o comando: %s", nome, cmdtext);
SendClientMessage(i, 0xF5F5DCAA, string);
}
}
}