Hi... I am new to pawn and I have a little problem. The function should take a picture to a blinded player after the 3rd frag done while he was blinded. The thing is that it does not work. Can somebody help me?
PHP Code:
new bool:g_bBlind[33]
new gFrags[ 33 ];
public hook_death()
{
new killer = read_data(1);
gFrags[ killer ]++;
new numeserver [64], numeadmin[32], numeblindat[32], ipcodat [32], admini[33], inum, message[552]
get_user_name(admin[killer], numeadmin, 31)
get_user_name(killer, numeblindat, 31)
get_user_ip(killer, ipcodat, 31, 1)
get_cvar_string("hostname",numeserver,63)
if(g_bBlind[killer])
{
if (gFrags[ killer ] == 3){
for (new i = 0; i < inum; ++i)
{
if ( access(admini[i],ADMIN_CHAT) )
{
client_print(admini[i],print_chat,"Jucatorul %s a facut 3 fraguri dupa blind-ul dat de %s",killer,admin[killer])
}
client_print(killer, print_chat, "* Poza facuta pe : %s",numeserver)
client_print(killer, print_chat, "* Nume codat: ^"%s^" cu IP: %s",numeblindat,ipcodat)
client_print(killer, print_chat, "* Nume admin: ^"%s^"",numeadmin)
client_print(killer, print_chat, "* Viziteaza %s pentru a face o cerere de UNBAN.", poza)
client_cmd(killer,"wait;snapshot")