Jump to content
  • 0

Help


Ph0eniX

Question

Saltare cum as putea adauga la fiecare rank de killuri sa ii dea respectivului player armura ? de exemplu daca un player are ranku de killuri "noob" sa ii dea la spawn +5 Armour

Mersi si scuzati daca nu face parte din aceasta sectiune :D

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Cu o variabila.

new kills[MAX_PLAYERS];

la onplayerconnect adaugi kills[playerid] = 0;

la onplayerdeath adaugi kills[killerid]++;

la onplayerspawn pui

new Float:armour;

if(kills[playerid] == 5)//noob

{

    GetPlayerArmour(playerid, armour);

    SetPlayerArmour(playerid, armour+5);

}

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

gireada miai spus sa adaug

new Float:armour;
	if(kills[playerid] < 100)//noob
	{
     	GetPlayerArmour(playerid, armour);
    	SetPlayerArmour(playerid, armour+5);
	}
am adaugat...si am continuat asa :|
new Float:armour;
	if(kills[playerid] < 100)//noob
	{
     	GetPlayerArmour(playerid, armour);
    	SetPlayerArmour(playerid, armour+5);
    	SendClientMessage(playerid, orange, "+5 armour!");
	}
	else if(kills[playerid] >= 100 && kills[playerid] < 250)//new killer
	{
     	GetPlayerArmour(playerid, armour);
    	SetPlayerArmour(playerid, armour+15);
    	SendClientMessage(playerid, orange, "+15 armour!");
	}

dece nu merge ? app am pus acelea cu "sendclientmessage" sami dau eu seama daca functioneaza sau nu

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

if(AccInfo[playerid][Kills] < 100) KRank = "Noob";
	else if(AccInfo[playerid][Kills] >= 100 && AccInfo[playerid][Kills] < 250)
	{
	    KRank = "New Killer";
	}
	else if(AccInfo[playerid][Kills] >= 250 && AccInfo[playerid][Kills] < 400)
	{
	    KRank = "Advanced Killer";
	}

astea sunt la Rank:)
	}

etc...si killurile la status da le am ca am comanda /setkills si le setez direct dp sv...dp imi dau respawn

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.