14.03.2013, 11:21
hi
in gamemod i have InAdminMode and AdminLevel i used OnPlayerTakeDamage but its aint working
thanks for helping me
in gamemod i have InAdminMode and AdminLevel i used OnPlayerTakeDamage but its aint working
thanks for helping me
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) // take damage { if(issuerid != INVALID_PLAYER_ID) { new string[128], admin[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME]; GetPlayerName(playerid, admin, sizeof (admin)); GetPlayerName(issuerid, attacker, sizeof (attacker)); if( admin == AdminLevel[playerid] >= 1 == InAdminMode[playerid] == 1) { format(string, sizeof(string), "dont attack admin on duty"); SendClientMessage(attacker,0xFFFFFFFF, string); // can replace the warn msg with ApplyAnmation ? how i do it like attacker == applyanmation() ? } } return 1; }