05.08.2011, 19:52
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/adm", true) == 0)
{
new nadms, name[MAX_PLAYER_NAME];
SendClientMessage(playerid, -1, "____|CoD:SaMp Online Administrators|____");
for( new i=0; i<MAX_PLAYERS; i++ )
{
if( IsPlayerConnected(i) && !IsPlayerNPC(i) )
{
GetPlayerName (i, name, sizeof(name) );
if(!strcmp(name, "Alex_Obando", false)) {
SendClientMessage(playerid, -1, "Alex_Obando (Owner Administrator).");
nadms++;
}
if(!strcmp(name, "Jackson", false)) {
SendClientMessage(playerid, -1, "Jackson Level 1.");
nadms++;
}
}
}
if(nadms == 0) SendClientMessage(playerid, -1, "No Administrators are online.");
}
return 1;
}