Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Cerere Modificare Plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
650
JuNNky
[Mentally Stable]
Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83
,
Topics: 17
Location:
Romania
Reputation:
6.8
Posted: 20-09-2015, 21:05:14
| Translate post to:
... (
Click for more languages
)
Salut! As avea nevoie ca cineva sa imi modifice sma-ul de mai jos astfel incat sa fie pus pe flagul "t"
Spoiler:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Hades"
// Credits: Aragon*
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("zp_giveap", "give_ap", ADMIN_RCON, "<name/@All> <ammo>");
}
public give_ap(id, level, cid) {
new arg[23], gplayers[32], num, i, players, name[32];
get_user_name(id, name, 31);
read_argv(1, arg, 23);
new give_ammop[10];
read_argv(2, give_ammop, charsmax(give_ammop));
new Ammo = str_to_num(give_ammop);
if(equali(arg, "@All")) {
get_players(gplayers, num, "ch");
for(i = 0; i < num; i++) {
players = gplayers[i];
if(!is_user_connected(players))
continue;
zp_set_user_ammo_packs ( players, zp_get_user_ammo_packs ( players ) + Ammo );
}
}
new player = cmd_target(id, arg, 11);
if(!player) {
console_print(id, "Juctorul cu acel nume nu exista.");
}
else {
zp_set_user_ammo_packs ( player, zp_get_user_ammo_packs ( player ) + Ammo );
}
return 1;
}
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 21-09-2015, 16:14:05
| Translate post to:
... (
Click for more languages
)
Schimbi
Code:
register_concmd("zp_giveap", "give_ap", ADMIN_RCON, "<name/@All> <ammo>");
cu
Code:
register_concmd("zp_giveap", "give_ap", ADMIN_LEVEL_H, "<name/@All> <ammo>");
Retired from Amxmodx
0
0
Back to top
JuNNky
[Mentally Stable]
Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83
,
Topics: 17
Location:
Romania
Reputation:
6.8
Posted: 21-09-2015, 18:36:50
| Translate post to:
... (
Click for more languages
)
Nu merge , tot au acces si ceilalti admini.
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 22-09-2015, 13:47:35
| Translate post to:
... (
Click for more languages
)
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Hades"
// Credits: Aragon*
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("zp_giveap", "give_ap", ADMIN_RCON, "<name/@All> <ammo>");
}
public give_ap(id, level, cid) {
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id,print_console,"Nu ai acces la aceasta comanda.");
return PLUGIN_HANDLED;
}
new arg[23], gplayers[32], num, i, players, name[32];
get_user_name(id, name, 31);
read_argv(1, arg, 23);
new give_ammop[10];
read_argv(2, give_ammop, charsmax(give_ammop));
new Ammo = str_to_num(give_ammop);
if(equali(arg, "@All")) {
get_players(gplayers, num, "ch");
for(i = 0; i < num; i++) {
players = gplayers[i];
if(!is_user_connected(players))
continue;
zp_set_user_ammo_packs ( players, zp_get_user_ammo_packs ( players ) + Ammo );
}
}
new player = cmd_target(id, arg, 11);
if(!player) {
console_print(id, "Juctorul cu acel nume nu exista.");
}
else {
zp_set_user_ammo_packs ( player, zp_get_user_ammo_packs ( player ) + Ammo );
}
return PLUGIN_HANDLED;
}
Retired from Amxmodx
0
0
Back to top
JuNNky
[Mentally Stable]
Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83
,
Topics: 17
Location:
Romania
Reputation:
6.8
Posted: 23-09-2015, 21:20:08
| Translate post to:
... (
Click for more languages
)
Topic close!
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
destroi112
, 24 September 2015 12:39
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 09-05-2025, 18:15:37
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