23.06.2013, 21:46
Sir , Doesnt work
Would you can fix it sir please ?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if(issuerid != INVALID_PLAYER_ID) { ShotPlayer[issuerid][playerid] = gettime(); LastShot[playerid] = gettime(); } else if(issuerid != INVALID_PLAYER_ID && weaponid == 34) { // One shot to kill with sniper rifle SetPlayerHealth(playerid, 0.0); } else if(issuerid != INVALID_PLAYER_ID && weaponid == 38) { // One shot to kill with Minigun SetPlayerHealth(playerid, 0.0); } return 1; }