[Include] - KnifeInclude
#1

[iPs]TeaM
Include KnifeInclude
Tava sem Ideia para nome '-'

Introduзгo
Estб Include foi feita para facilitar a vida dos preguiзosos que nгo lembram das funзхes e tambйm para implementar novas coisas. '-'
Como por exemplo.
Verificar se o jogador estб Congelado , Verificar quantos Kills e Deathґs ele teve durante a jogabilidade.
Entre outros.

Exemplo de Codigo para utilizaзгo da Include

Код:
if ( strcmp( cmdtext, "/morrer", true)   == 0)
	{
	Matar ( playerid ) ;
	return 1;
	}
	if ( strcmp( cmdtext, "/congelar", true)   == 0)
	{
	Congelar ( playerid , false ) ;
	return 1;
	}
	if ( strcmp( cmdtext, "/descongelar", true)   == 0)
	{
	Congelar ( playerid , true ) ;
	return 1;
	}
	if ( strcmp( cmdtext, "/status", true)   == 0)
	{
	
	new atext[20] ;
	if (VerCongelado ( playerid ) == 1)   { atext = "Sim" ; }
	else if (VerCongelado ( playerid ) == 0)   { atext = "Nao" ; }
	
	new cooordstring[256],lstring[256] ;
	format( lstring, sizeof( lstring)  , "{FFFFFF}Nome: {E31919}%s\n{FFFFFF}Matou {E31919}%d\n{FFFFFF}Morreu {E31919}%d\n{FFFFFF}Congelado {E31919}%s",GetPlayerNameEx(playerid), GetPlayerKills(playerid),GetPlayerdDeaths(playerid),atext);
	strcat( cooordstring,lstring)   ;
	ShowPlayerDialog( playerid, 5222, DIALOG_STYLE_MSGBOX, "Status", cooordstring, "Ok", "Fechar")   ;
	return 1;
	}
Imagens

[spoiler]http://ips-team.webcindario.com/fotos/be5487be33.png[/spoiler]

Funзхes Nativas da Include
native Congelar ( playerid , bool: stats ) ;
native VerCongelado ( playerid ) ;
native SetarPosEx ( playerid , Float:KnifeX , Float:KnifeY , Float:KnifeZ , Float:Angulo ) ;
native PegarVida ( playerid , vida ) ;
native PegarColete ( playerid , colete ) ;
native PegarScore ( playerid , score ) ;
native DarVida ( playerid , vida ) ;
native DarColete ( playerid , colete ) ;
native DarScore ( playerid , score ) ;
native ResetarDinDin ( playerid , dinheiro ) ;
native Matar ( playerid ) ;
native Tapa ( playerid ) ;
native Explodir ( playerid ) ;
native LimparChat ( linhas ) ;
native BanIp ( playerid ) ;
native GetPlayerKills ( playerid ) ;
native GetPlayerNameEx( playerid ) ;

Creditos

Criador -> [iPs]Knife
e
Jim._.Carrey pela Postagem

Download
http://pastebin.com/69cheARE
Ou
http://www.4shared.com/file/XTWr_YvN/KnifeInclude.html

Reply


Messages In This Thread
- KnifeInclude - by [NWD]Jim._.Carrey - 01.05.2011, 21:34
Re: - KnifeInclude - by Dr_Pawno - 01.05.2011, 21:46
Re: - KnifeInclude - by [FeK]Netizen - 01.05.2011, 22:09
Re: - KnifeInclude - by Randy_Orton - 01.05.2011, 22:29
Re: - KnifeInclude - by The Knight - 01.05.2011, 22:30
Re: - KnifeInclude - by TheGarfield - 01.05.2011, 22:34
Re: - KnifeInclude - by Carl_Thuse - 01.05.2011, 23:30
Re: - KnifeInclude - by Macintosh - 02.05.2011, 02:28
Re: - KnifeInclude - by Ricop522 - 02.05.2011, 02:41

Forum Jump:


Users browsing this thread: 1 Guest(s)