Raised This Month: $51 Target: $400
 12% 

[REQ] Convert to DHUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anon12
Member
Join Date: Aug 2013
Old 07-17-2014 , 00:57   [REQ] Convert to DHUD
Reply With Quote #1

Can someone convert this to dhud?
PHP Code:
 PokeDisplay(idaid)
{
if ( !
PMon() || !Pokemod_Connected(id) || !Pokemod_Connected(aid) ) return

static 
message[256], iLen
copy
(message255, EMPTY)
iLen 0

static pname[NAME_LENGTH], level
if(PlayersSet[id][SET_HUD_PARTY] && !Safari()){
for(new 
x=0x<MAX_ACTIVE_POKESx++){
if(!
PlayersPoke[aid][x])
break
iLen += formatex(message[iLen],(255-iLen),"%s(Level:%d)\n"PokeToName(PlayersPoke[aid][x]), PlayersLevel(aidx))
}
}

if(
id != aid)
iLen += formatex(message[iLen],(255-iLen)," HP: %d/%d "Health(aid), PlayerStat[aid][STAT_MAXHP])
#if MOD==CS
else if(Health(aid) > 255 || PlayerStat[aid][STAT_MAXHP] > 255)
iLen += formatex(message[iLen],(255-iLen)," HP: %d/%d "Health(aid), PlayerStat[aid][STAT_MAXHP])
#endif

if(Pokemon[aid]){
new 
temp[56], moneytemp[56]

level PlayersLevel(aidPlayersActive[aid])
PokeToName(Pokemon[aid], pnameNAME_LENGTH)

if(
BindUsed[aid]==WAIT_TIME)
copy(temp,55,"Wait")
else if(
BindUsed[aid]>0.0)
formatex(temp,55,"%.01f",BindUsed[aid]-get_gametime())
else
copy(temp,55,"Ready")

#if MOD!=CS
formatex(moneytemp,55," $%d",Money(aid))
#else
copy(moneytemp,55,EMPTY)
#endif

if(id==aid){
if(
Safari()){
iLen += formatex(message[iLen],(255-iLen),"%L: %s (Skill:%s)%s"id,"POKEMOD_POKEMON"pnametempmoneytemp)
}
else{
if( 
level >= TotalLevels )
iLen += formatex(message[iLen],(255-iLen),"%L: %s (Skill:%s Level:%d Exp:%d)%s"id,"POKEMOD_POKEMON"pnametemplevelPlayersXP[id][PlayersActive[id]], moneytemp )
else
iLen += formatex(message[iLen],(255-iLen),"%L: %s (Skill:%s Level:%d Exp:%d/%d)%s"id,"POKEMOD_POKEMON"pnametemplevelPlayersXP[id][PlayersActive[id]], g_isWild[id]>0?PokeLevels[level]/2:PokeLevels[level], moneytemp )
}
}
else {
if(
Safari())
iLen += formatex(message[iLen],(255-iLen),"%s (Skill:%s)%s"pnametempmoneytemp )
else
iLen += formatex(message[iLen],(255-iLen),"%s (Skill:%s Level:%d)%s"pnametemplevelmoneytemp )
}
}

//for some reason, in NS it flashes, so were going to make it last longer
#if MOD==NS
//set_hudmessage(0, 100, 0, 0.01, PlayersSet[id][SET_HUD_Y]*0.02, 0, 0.1, 12.0, 0.1, 0.1, -1)
set_hudmessage(255000.020.7300.112.00.00.0)
#else
set_hudmessage(255000.020.7300.112.00.00.0)
#endif

ShowSyncHudMsgidHUDSYNCmessage )

#if MOD!=CS
pokemon_statustext(id)
#endif

EDIT: nvm thnx anyway

Last edited by YamiKaitou; 07-17-2014 at 07:43. Reason: solved
anon12 is offline
FrOZeN F1rE
Junior Member
Join Date: Mar 2014
Location: Reality..!!
Old 07-17-2014 , 01:27   Re: [REQ] Convert to DHUD
Reply With Quote #2

Try And See
PHP Code:
#include <amxmodx>
#include <dhudmessage> //Search For That If You Dont Have ! :3

PokeDisplay(id)
{
    
set_task(id"whatever_your_task_name")
}

public 
whatever_your_task_name(id)
{
    
set_dhudmessage(255000.020.7300.112.00.00.0) ;
    
show_dhudmessageidHUDSYNC"message" );

__________________

FreezeTag Mod + Shop + Items!
Need Some Help !!!! Please PM me
FrOZeN F1rE is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode