26.05.2016, 23:19
Which commands doesn't work ? All of your commands is working. (I tested all of your commands).
Just added GetName and changed your loop from SendAdminMessage
NB : Delete your IP adress in the server_log:
Just added GetName and changed your loop from SendAdminMessage
PHP код:
stock SendAdminMessage(const color, const message[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
printf("Player %i <pAdmin: %i>", i, Player[i][pAdmin]);
if(Player[i][pAdmin] >= 4)
{
printf("Found player %i, sending message", i);
SendClientMessage(i, color, message);
}
}
return 1;
}
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
PHP код:
[22:22:16] [connection] incoming connection: xxx.xxx.x.x:xxxxx id: 0
[22:22:17] [join] JXF has joined the server (0:xxx.xxx.x.x)