Jump to content

Recommended Posts

nu stiu de unde ar putea cauza, insa damage-ul la arma e stricat. adica, inainte dadeam 100 cu deagle dintr-un hit, apoi am facut sa dau -47, adica 3 hit-uri

dar, prima oara cand il omor tot 1  hit ii dau si-l omor, dupa ce-l omor prima oara damage-ul se da normal (3 hit-uri), si la m4 e la fel

o idee de rezolvare?

Link to post
Share on other sites
Acum 2 minute, iSkull a spus:

niciodata nu poti da 100 dmg dintr-un hit pe samp, cauta pe google, e minim 2/3 hituri

pai, eu nush cum pot=))

Link to post
Share on other sites
Acum 54 minute, hanako a spus:

https://pastebin.com/k5eEAUxn poftim aici functia

function OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
    if(Logged[playerid] == 0) return 1;
    if(damagedid == INVALID_PLAYER_ID) return 1;
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return 1;
    if(GetPlayerSurfingVehicleID(playerid) != INVALID_VEHICLE_ID) return 1;
    if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER && GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;

	new Float:health;
	GetPlayerHealth(damagedid, health);
	if(weaponid == 54) SetPlayerHealth(damagedid, health-100); // Viata lui si pui minus cat vrei tu.
	return 1;
}

 

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii nu mai veniti cu vorba de "Am gamemode unic" nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to post
Share on other sites
Acum 54 minute, StrikerM a spus:
function OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
    if(Logged[playerid] == 0) return 1;
    if(damagedid == INVALID_PLAYER_ID) return 1;
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return 1;
    if(GetPlayerSurfingVehicleID(playerid) != INVALID_VEHICLE_ID) return 1;
    if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER && GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;

	new Float:health;
	GetPlayerHealth(damagedid, health);
	if(weaponid == 54) SetPlayerHealth(damagedid, health-100); // Viata lui si pui minus cat vrei tu.
	return 1;
}

 

tot acelasi lucru

uite aici video https://youtu.be/oVHTZgNeaIs

Link to post
Share on other sites
La 03.05.2021 la 15:23, hanako a spus:

tot acelasi lucru

uite aici video https://youtu.be/oVHTZgNeaIs

Ai tu altceva prin gamemode ce face asta, un filterscript sau altceva prin onplayertake si givedamage.

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii nu mai veniti cu vorba de "Am gamemode unic" nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to post
Share on other sites
Acum 20 minute, StrikerM a spus:

Ai tu altceva prin gamemode ce face asta, un filterscript sau altceva prin onplayertake si givedamage.

am rezolvat, sincer chiar nu am nicio idee cum, dar am reusit

  • Like 1
Link to post
Share on other sites
  • Mister locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.