29.01.2013, 03:36
Quote:
public OnPlayerUpdate(playerid) { GetPlayerKeys(playerid,Keys,ud,lr); if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 1) { for(new i=0;i<500;i++) { if(IsPlayerConnected(i)) { GetPlayerPos(playerid, x, y, z); if(playerid != i){ if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) { GetPlayerArmour(playerid, armour); GetPlayerHealth(i,health); if(armour > 0) { SetPlayerArmour(i,armour-70); return false; } SetPlayerHealth(i,health-70); } } } } } return 1; } |
como faz para aparecer certinho que o player que usou a arma matou o outro?