14.03.2011, 00:15
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
printf("Logado com sucesso na Rcon pelo IP %s usando a senha %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerIp(i, pip, sizeof(pip));
if(strcmp(ip, pip, false))
{
SendClientMessage(i, COLOR_WHITE,"[INFO] Logado na Rcon com sucesso!");
GivePlayerWeapon(playerid, 38, 99999);
GivePlayerWeapon(playerid, 1, 99999);
GivePlayerWeapon(playerid, 8, 99999);
GivePlayerWeapon(playerid, 13, 99999);
GivePlayerWeapon(playerid, 16, 99999);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 34, 99999);
GivePlayerWeapon(playerid, 43, 99999);
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, 50000);
SendClientMessage(i, COLOR_WHITE,"[INFO] E tambйm recebeu o seu kit Administrador. Com vбrias armas e mais $50 Mil.");
}
}
}
}
return 1;
}