[POMOC]Admin

Započeo Mr.Glavonja, Januar 30, 2013, 16:49:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Edit n l-a
Detaljan problem:Ovako zelio bih da kada je admin na duznosti da ga nmgu ubiti to jes da mu non stop puni hp na 100
Dio skripte:
CMD:aon(playerid, params[])
{
	if(PI[playerid][Admin] > 0 || IsPlayerAdmin(playerid))
	{
	    new ime[MAX_PLAYER_NAME], ip[24];
		if(AdminDuznost[playerid] == 1) return SCM(playerid, GRAD2, "(greska) Vec imate ukljucenu Admin duznost!");
		AdminDuznost[playerid] = 1;
		SetPlayerHealth_H(playerid, 100);
		SetPlayerArmour_H(playerid, 100);
		RPIme(playerid, ime);
		format(CmdString, 75, "|{FFFFFF}A{FF0000}| {FFFFFF}%s {FF0000}je sada na duznosti.", ime);
		StaffPoruka(CRVENA, CmdString);
		SetPlayerColor(playerid, CRVENA);
		SCM(playerid, ZELENA, "Ukljucili ste Admin duznost. Da je iskljucite, upisite /aoff.");
		GetPlayerIp(playerid, ip, 24);
		format(CmdString, 80, "| Administrator | Igrac: %s | S: Ukljucena | IP: %s", ime, ip);
		UpisiLog(FAJL_DUZNOSTLOG, CmdString);
	}
	else return SCM(playerid, GRAD2, "(greska) Niste autorizovani da koristite ovu komandu!");
	return 1;
}

Ako neko moze da mi pomogne znaci SetPlayerHealth_H(playerid, 99999); nmze jer odma oduzme hp isto kao da ima 100 pa ako neko moze da pomogne hitno je.
Slika:/
Video:/
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

DHV

*

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(AdminDuznost[playerid] >= 1)
    {
        SetPlayerHealth(playerid, 100);
    }
    return 1;
}

Hvala e ako moze jos jedna pomoc kako da ovo ubacim
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(weaponid == 34) SetPlayerHealth(playerid, 0);
    return 1;
}

u ovaj kod sto si mi napisala to jest kako da ovo spojim sa ovim gore jer nmgu da mi stoje dva ova publica OnPlayerTakeDamage izbacuje mi error 021: symbol already defined: "OnPlayerTakeDamage"
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________

DHV

*

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(AdminDuznost[playerid] >= 1)  SetPlayerHealth(playerid, 100);
    if(weaponid == 34) SetPlayerHealth(playerid, 0);
    return 1;
}

Hvala puno
______________________________________________
Havana RolePlay 0.3z
Server IP: 193.192.59.222:7778
Forum: Uskoro
TeamSpeak: Uskoro!
Otvorenje: 27.02.2014
_____________________________________________