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

Solved Info what its this lol


Post New Thread Reply   
 
Thread Tools Display Modes
NarutoAzores
Junior Member
Join Date: Sep 2018
Old 09-27-2018 , 14:28   Re: Info what its this lol
Reply With Quote #11

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <zp_dsohud>
#include <amxmisc>
#include <cstrike>


new const g_test[] = "sprites/test/test.spr"


public plugin_init()
{
register_plugin("Welcome Message With Sprite.", "1.0", "Naruto #Azores");
register_clcmd("chooseteam", "Join")

}

public Join(id)
{
Test(id)
zp_display_hud_sprite(id, g_test, 0.04)
if(!(cs_get_user_team(id) == CS_TEAM_UNASSIGNED) && !(cs_get_user_team(id) == CS_TEAM_SPECTATOR) && g_test[id] == 1)

return PLUGIN_HANDLED
}


public Test(id)
{
new iMenu = menu_create ("\r-===[ \yTest \r]===-", "SubMenu" );

menu_additem( iMenu, "\wChoose Team", "1", 0 );


menu_setprop( iMenu, MPROP_EXITNAME, "Sair" );
menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );

menu_display( id, iMenu, 0 );

return PLUGIN_HANDLED;
}

public SubMenu( id, iMenu, iItem )
{
if( iItem == MENU_EXIT )
{
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

new iAccess, iData[ 6 ], iName[ 64 ], iCallBack;
menu_item_getinfo( iMenu, iItem, iAccess, iData, charsmax( iData ), iName, charsmax( iName ), iCallBack );

new iKey = str_to_num( iData );

switch( iKey )
{
case 1:Menu_ChooseTeam(id);


}
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

public Menu_ChooseTeam(id)
{
new iMenu = menu_create( "\r-===[ \yMenu Principal \r]===- \d> \wEscolher Equipa", "Menu_ChooseTeam_Handler" );

menu_additem( iMenu, "\yCT", "1", 0 );
menu_additem( iMenu, "\yT^n", "2", 0 );
menu_additem( iMenu, "\ySPEC", "3", 0 );

menu_setprop( iMenu, MPROP_EXITNAME, "Sair" );
menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );

menu_display( id, iMenu, 0 );

return PLUGIN_HANDLED;
}

public Menu_ChooseTeam_Handler( id, iMenu, iItem )
{
if( iItem == MENU_EXIT )
{

menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

new iAccess, iData[ 6 ], iName[ 64 ], iCallBack;
menu_item_getinfo( iMenu, iItem, iAccess, iData, charsmax( iData ), iName, charsmax( iName ), iCallBack );

new iKey = str_to_num( iData );

new data[5]
new tempid = str_to_num(data)

new szAdminName[32], szPlayerName[32]

get_user_name(id, szAdminName, charsmax(szAdminName))
get_user_name(tempid, szPlayerName, charsmax(szPlayerName))

switch( iKey )
{
case 1:
{
user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_CT );
zp_remove_hud_sprite(id)
}
case 2:
{


user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_T );
zp_remove_hud_sprite(id)


}
case 3:
{

user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_SPECTATOR );
zp_remove_hud_sprite(id)

menu_destroy( iMenu );
return PLUGIN_HANDLED;
}
}
}

public plugin_precache()
{
precache_model(g_test)
}

this gonna work? .-.
NarutoAzores is offline
NarutoAzores
Junior Member
Join Date: Sep 2018
Old 09-27-2018 , 14:32   Re: Info what its this lol
Reply With Quote #12

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <zp_dsohud>
#include <amxmisc>
#include <cstrike>


new const g_test[] = "sprites/test/test.spr"


public plugin_init()
{
register_plugin("Welcome Message With Sprite.", "1.0", "Naruto #Azores");
register_clcmd("chooseteam", "Join")

}

public Join(id)
{
Test(id)
zp_display_hud_sprite(id, g_test, 0.04)
if(!(cs_get_user_team(id) == CS_TEAM_UNASSIGNED) && !(cs_get_user_team(id) == CS_TEAM_SPECTATOR) && g_test[id] == 1)

return PLUGIN_HANDLED
}


public Test(id)
{
new iMenu = menu_create ("\r-===[ \yTest \r]===-", "SubMenu" );

menu_additem( iMenu, "\wChoose Team", "1", 0 );


menu_setprop( iMenu, MPROP_EXITNAME, "Sair" );
menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );

menu_display( id, iMenu, 0 );

return PLUGIN_HANDLED;
}

public SubMenu( id, iMenu, iItem )
{
if( iItem == MENU_EXIT )
{
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

new iAccess, iData[ 6 ], iName[ 64 ], iCallBack;
menu_item_getinfo( iMenu, iItem, iAccess, iData, charsmax( iData ), iName, charsmax( iName ), iCallBack );

new iKey = str_to_num( iData );

switch( iKey )
{
case 1:Menu_ChooseTeam(id);


}
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

public Menu_ChooseTeam(id)
{
new iMenu = menu_create( "\r-===[ \yMenu Principal \r]===- \d> \wEscolher Equipa", "Menu_ChooseTeam_Handler" );

menu_additem( iMenu, "\yCT", "1", 0 );
menu_additem( iMenu, "\yT^n", "2", 0 );
menu_additem( iMenu, "\ySPEC", "3", 0 );

menu_setprop( iMenu, MPROP_EXITNAME, "Sair" );
menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );

menu_display( id, iMenu, 0 );

return PLUGIN_HANDLED;
}

public Menu_ChooseTeam_Handler( id, iMenu, iItem )
{
if( iItem == MENU_EXIT )
{

menu_destroy( iMenu );
return PLUGIN_HANDLED;
}

new iAccess, iData[ 6 ], iName[ 64 ], iCallBack;
menu_item_getinfo( iMenu, iItem, iAccess, iData, charsmax( iData ), iName, charsmax( iName ), iCallBack );

new iKey = str_to_num( iData );

new data[5]
new tempid = str_to_num(data)

new szAdminName[32], szPlayerName[32]

get_user_name(id, szAdminName, charsmax(szAdminName))
get_user_name(tempid, szPlayerName, charsmax(szPlayerName))

switch( iKey )
{
case 1:
{
user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_CT );
zp_remove_hud_sprite(id)
}
case 2:
{


user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_T );
zp_remove_hud_sprite(id)


}
case 3:
{

user_kill( id, 1 );
cs_set_user_team( id, CS_TEAM_SPECTATOR );
zp_remove_hud_sprite(id)

menu_destroy( iMenu );
return PLUGIN_HANDLED;
}
}
}

public plugin_precache()
{
precache_model(g_test)
}

this gonna work?
NarutoAzores is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-27-2018 , 15:14   Re: Info what its this lol
Reply With Quote #13

First, stop bump.
Second, add code in php/code/pawn tag.
Third, test with yourself.
__________________









Last edited by CrazY.; 09-27-2018 at 15:18.
CrazY. is offline
arnalll
Member
Join Date: Nov 2015
Location: France
Old 09-28-2018 , 07:04   Re: Info what its this lol
Reply With Quote #14

hi,

i did found the plugin below from a russian website.

maybe it can help you.

with some modifications it works on my dodserver.

bb.
Attached Files
File Type: sma Get Plugin or Get Source (mdl_motd_v2.sma - 370 views - 824 Bytes)
arnalll is offline
Kanek1
Junior Member
Join Date: Oct 2018
Old 10-21-2018 , 10:59   Re: Info what its this lol
Reply With Quote #15

Quote:
Originally Posted by NarutoAzores View Post
How??? this is sprite??? or motd??? i see this in server cs 1.6 lol in join he show this "Welcome! Legend the Portugal" its hard to create this?



How create this to lol??



Can someone create an equal?
Wooow i never ser that lol
Kanek1 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 19:56.


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