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