Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Problema plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
1085
Ciurii[:x]
[Bulã]
Status: Offline
(since 07-07-2013 08:20)
Joined: 10 Feb 2010
Posts: 3312
,
Topics: 130
Location:
Baia Mare
Reputation:
98.2
Votes
: 22
Posted: 04-08-2011, 20:35:45
| Translate post to:
... (
Click for more languages
)
Cum pot seta un flag la un plugin ? ( nu merge din cmdacces ) +rep
0
0
Back to top
Tyger
[Born Wild]
Status: Offline
(since 17-05-2014 22:04)
Joined: 15 Jun 2009
Posts: 440
,
Topics: 30
Location:
Romania
Reputation:
300.4
Votes
: 10
Posted: 06-08-2011, 11:05:33
| Translate post to:
... (
Click for more languages
)
pune sursa pluginului si flagul pe care vrei sa iti functioneze
Edited: Fara reclama in semnatura
0
0
Back to top
Ciurii[:x]
[Bulã]
Status: Offline
(since 07-07-2013 08:20)
Joined: 10 Feb 2010
Posts: 3312
,
Topics: 130
Location:
Baia Mare
Reputation:
98.2
Votes
: 22
Posted: 06-08-2011, 11:33:45
| Translate post to:
... (
Click for more languages
)
Code:
public SetLevel(id)
{
//Multilang is not enabled here since I plan to remove this funtionality once this leaves BETA
#if defined ZP_GAMERUINER
if ( read_argc() > 3 ) return PLUGIN_HANDLED;
new arg1[32], arg2[10], amount;
read_argv(1, arg1, sizeof(arg1) - 1);
read_argv(2, arg2, sizeof(arg2) - 1);
amount = str_to_num(arg2);
if( amount <= 0) amount = 1;
new target = cmd_target(0, arg1, 2);
if ( target == 0 )
{
//couldnt find them
zp_colored_print(id, "^x04%s^x01 Could not find the requested user.", textHeader);
return PLUGIN_HANDLED;
} else {
//we found them!
userLevel[target] = amount
ShowHUD(id)
if(id == target)
{
zp_colored_print(id, "^x04%s^x01 You have set yourself to level %d!", textHeader, amount );
} else {
new targetName[64];
get_user_name(target, targetName, 63);
zp_colored_print(id, "^x04%s^x01 You have set %s to level %d!", textHeader , targetName, amount );
zp_colored_print(target, "^x04%s^x01 You have been set to level %d!", textHeader , amount );
}
return PLUGIN_HANDLED;
}
#else
zp_colored_print(id, "^x04%s^x01 This functionality has been disabled.", textHeader);
client_print(id, print_console, "^x04%s^x01 This functionality has been disabled.", textHeader);
#endif
return PLUGIN_HANDLED;
}
+
Code:
register_clcmd("zp_setlevel", "SetLevel")
flagul
U
0
0
Back to top
Tyger
[Born Wild]
Status: Offline
(since 17-05-2014 22:04)
Joined: 15 Jun 2009
Posts: 440
,
Topics: 30
Location:
Romania
Reputation:
300.4
Votes
: 10
Posted: 06-08-2011, 14:11:33
| Translate post to:
... (
Click for more languages
)
pune sursa completa, ca nu asa incepe un plugin
Edited: Fara reclama in semnatura
0
0
Back to top
Ciurii[:x]
[Bulã]
Status: Offline
(since 07-07-2013 08:20)
Joined: 10 Feb 2010
Posts: 3312
,
Topics: 130
Location:
Baia Mare
Reputation:
98.2
Votes
: 22
Posted: 09-08-2011, 10:56:59
| Translate post to:
... (
Click for more languages
)
Code:
//Uncomment to give levels to people
#define ZP_GAMERUINER
Code:
// Register client commands
register_clcmd("zp_setlevel", "SetLevel")
Code:
SetLevel(id)
{
//Multilang is not enabled here since I plan to remove this funtionality once this leaves BETA
#if defined ZP_GAMERUINER
if ( read_argc() > 3 ) return PLUGIN_HANDLED;
new arg1[32], arg2[10], amount;
read_argv(1, arg1, sizeof(arg1) - 1);
read_argv(2, arg2, sizeof(arg2) - 1);
amount = str_to_num(arg2);
if( amount <= 0) amount = 1;
new target = cmd_target(0, arg1, 2);
if ( target == 0 )
{
//couldnt find them
zp_colored_print(id, "^x04%s^x01 Could not find the requested user.", textHeader);
return PLUGIN_HANDLED;
} else {
//we found them!
userLevel[target] = amount
ShowHUD(id)
if(id == target)
{
zp_colored_print(id, "^x04%s^x01 You have set yourself to level %d!", textHeader, amount );
} else {
new targetName[64];
get_user_name(target, targetName, 63);
zp_colored_print(id, "^x04%s^x01 You have set %s to level %d!", textHeader , targetName, amount );
zp_colored_print(target, "^x04%s^x01 You have been set to level %d!", textHeader , amount );
}
return PLUGIN_HANDLED;
}
#else
zp_colored_print(id, "^x04%s^x01 This functionality has been disabled.", textHeader);
client_print(id, print_console, "^x04%s^x01 This functionality has been disabled.", textHeader);
#endif
return PLUGIN_HANDLED;
}
e un plugin gen amx_super , deaiea ti-am dat doar esentialu
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 07-08-2025, 03:35:46
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details