Help admin chat
#1

Whats wrong 0 error on pawno compile but when i try it doesen't work

public OnPlayerText(playerid, text[])
{
new string[256];
if(text[0] == '@' && PlayerInfo[playerid][Admin] >= 1)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"[{FFFFFF}ADMINCHAT{8080FF}] %s(%d): %s",playername,playerid,text[1]);
SendMessageToGangMembers(PlayerInfo[playerid][Admin],string);
}
return 0;
}

forward SendMessageToGangMembers(colore,const string[]);
public SendMessageToGangMembers(colore,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(PlayerInfo[i][Admin] >= 1)
SendClientMessage(i, colore, string);
}
return 1;
}
Reply


Messages In This Thread
Help admin chat - by BlackEvils - 17.05.2015, 19:19
Re: Help admin chat - by Threshold - 18.05.2015, 05:03
Re: Help admin chat - by BlackEvils - 18.05.2015, 19:14
Re: Help admin chat - by J0sh... - 18.05.2015, 19:20
Re: Help admin chat - by Threshold - 18.05.2015, 19:26
Re: Help admin chat - by J0sh... - 18.05.2015, 19:27
Re: Help admin chat - by Threshold - 18.05.2015, 19:30
Re: Help admin chat - by Konstantinos - 18.05.2015, 19:30
Re: Help admin chat - by J0sh... - 18.05.2015, 19:32
Re: Help admin chat - by Konstantinos - 18.05.2015, 19:48

Forum Jump:


Users browsing this thread: 3 Guest(s)