Jump to content
  • 0

pomoc zbrane podla skillu


Guest smion

Dotaz

4 odpovědí na tuto otázku

Recommended Posts

  • 0

udelas si promenou new score[MAX_PLAYERS]; A do onplayerdeath das podminky podle teamu, kde se bude promena pricitat

 

score[playerid ++;

 

a do onplayerspawn pak podminky na promenou

if(score[playerid] ==atd

Link to comment
Share on other sites

  • 0

no diky aleeee...ja som v pawne dost velky amater tak ci by si mi nenapisal cely kod pllllllllllllllls, ak si hral cs gungame tak vies o co ide, ak nie tak ked zabijem trikrat teroristu tak mi da lepsiu zbran, 1. zbran s tlmicom, 2. ... najlepsie by bolo keby si mi napisal na icq bo to tu nechcem cele pisat (ves ake su na svete svine) tak mi pls napis na 385 899 026 diki moc dopredu

Link to comment
Share on other sites

  • 0

ja to mam takto

 

no musis mit promenou

 

napriklad. new score[MAX_PLAYERS];

 

if (promena teamu[killerid] != nerovna se promene hrace teamu[playerid])
{
score[killerid] ++;
}

 

priklad z gungamu

 

if (Info[Team][killerid] != Info[Team][playerid])
{
Info[Zbran][killerid] ++;
new NoveScore = Info[Zbran][killerid];
format(string, sizeof(string), "[i] Tvoje score: .::%d::.", NoveScore);
SCM(killerid, COLOR_LIME, string); NovaPromena = Info[Zbran][killerid];
}

 

a do onplayerdeath(nakonec jo) a do onplayerspawn

 

podminky

if (Info[Zbran][killerid] == 0 || Info[Zbran][killerid] < 5)
	 	{
	 	   	PlayerPlaySound(killerid,1056,0,0,0);
	 		GivePlayerWeapon(killerid, 22, 500); // 9 mm pistol
		}
	 	else if (Info[Zbran][killerid] == 5 || Info[Zbran][killerid] < 10)
	 	{
	 	   	PlayerPlaySound(killerid,1056,0,0,0);
			GivePlayerWeapon(killerid, 23, 500); // Silenced pistol
	 	}
	  	else if (Info[Zbran][killerid] == 10 || Info[Zbran][killerid] < 15)
	 	{
	 	   PlayerPlaySound(killerid,1056,0,0,0);
	       GivePlayerWeapon(killerid, 25, 500); // Shogtun
	 	}

 

u tebe to bude napriklad vypada

 

v onplayerdeath musi byt killerid

if(score[killerid] == 1)

{

akce

}

 

a v on playerspawn to stejne ale s playerid

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...