User
Pass
2FA
 
 

[rezolvat][CERERE] Plugin AMO ZM

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message1804
BoTTy_Cs

[Mentally Stable]



Status: Offline
(since 03-11-2014 12:52)
Joined: 26 Oct 2014
Posts: 13, Topics: 5
Location: Romania

Reputation: 31.4
Votes: 1

Post Posted: 26-10-2014, 19:56:38 | Translate post to: ... (Click for more languages)

Nume: AMO ZM
Descriere plugin: As vrea 1 plugin sa fie special doar pentru FONDATORI in care sa ai comada de a da amo cat doresti si 2 Cum sa fac sa fie lumina pe server pentru ca tot timpul e intuneric
Alte detalii:La pluginul pentru fondatori [giveap] am gasit dar imi da erroare asta cand aprind sv : file:///C:/Users/Jimi/Desktop/Untitled.png
Exemplu:=



Last edited by BoTTy_Cs on 26-10-2014, 20:40:13; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 26-10-2014, 20:34:48 | Translate post to: ... (Click for more languages)

pentru donare 1&2 : DOWNLOAD
pentru lumina modifici cvarul : zp_lighting in zombieplague.cfg.




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
BoTTy_Cs

[Mentally Stable]



Status: Offline
(since 03-11-2014 12:52)
Joined: 26 Oct 2014
Posts: 13, Topics: 5
Location: Romania

Reputation: 31.4
Votes: 1

Post Posted: 26-10-2014, 20:38:20 | Translate post to: ... (Click for more languages)

Cum modific?
0 0
  
Back to top
View user's profile Send private message
lemonEZAH

[Licensed to kill]



Status: Offline
(since 04-11-2019 15:30)
Joined: 28 Dec 2013
Posts: 7058, Topics: 351
Location: England

Reputation: 99.3
Votes: 483

Post Posted: 26-10-2014, 20:42:48 | Translate post to: ... (Click for more languages)

Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

public plugin_init ()
{
register_plugin ( "ZP: Give Ammo", "1.0.0", "Arkshine" );
register_clcmd ( "zp_giveap", "CmdGiveAP", ADMIN_RCON, "- zp_giveap <name> <amount> : Give Ammo Packs" );
}

public CmdGiveAP ( id, level, cid )
{
if ( !cmd_access ( id, level, cid, 3 ) )
{
return PLUGIN_HANDLED;
}

new s_Name[ 32 ], s_Amount[ 4 ];

read_argv ( 1, s_Name, charsmax ( s_Name ) );
read_argv ( 2, s_Amount, charsmax ( s_Amount ) );

new i_Target = cmd_target ( id, s_Name, 2 );

if ( !i_Target )
{
client_print ( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}

zp_set_user_ammo_packs ( i_Target, max ( 1, str_to_num ( s_Amount ) ) );

return PLUGIN_HANDLED;
}

Acces la transfer ammo au doar acei admini care au acces la rcon.
// Revin si cu celalalt plugin.

0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 26-10-2014, 20:43:16 | Translate post to: ... (Click for more languages)

DOWNLOAD

acum am vazut ca vrei sa fie pentru owneri doar. am bagat ADMIN_LEVEL_H in conditie (litera u). modifici tu daca e ceva nevoie, daca mai ai nevoie de altceva imi zici.




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
BoTTy_Cs

[Mentally Stable]



Status: Offline
(since 03-11-2014 12:52)
Joined: 26 Oct 2014
Posts: 13, Topics: 5
Location: Romania

Reputation: 31.4
Votes: 1

Post Posted: 26-10-2014, 20:54:13 | Translate post to: ... (Click for more languages)

DECI EU VREAU SA AIBA DOAR FONDATORII,SI am sters la celelalte grade litera "K" e bine asA?

Posturi unite automat, 26-10-2014, 20:54:13

ToaderValy wrote:
Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

public plugin_init ()
{
register_plugin ( "ZP: Give Ammo", "1.0.0", "Arkshine" );
register_clcmd ( "zp_giveap", "CmdGiveAP", ADMIN_RCON, "- zp_giveap <name> <amount> : Give Ammo Packs" );
}

public CmdGiveAP ( id, level, cid )
{
if ( !cmd_access ( id, level, cid, 3 ) )
{
return PLUGIN_HANDLED;
}

new s_Name[ 32 ], s_Amount[ 4 ];

read_argv ( 1, s_Name, charsmax ( s_Name ) );
read_argv ( 2, s_Amount, charsmax ( s_Amount ) );

new i_Target = cmd_target ( id, s_Name, 2 );

if ( !i_Target )
{
client_print ( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}

zp_set_user_ammo_packs ( i_Target, max ( 1, str_to_num ( s_Amount ) ) );

return PLUGIN_HANDLED;
}

Acces la transfer ammo au doar acei admini care au acces la rcon.
// Revin si cu celalalt plugin.



Imi apare erroare aia uita-te sus la imagine intra pe situ ala ...

0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 26-10-2014, 21:06:43 | Translate post to: ... (Click for more languages)

ala e alt plugin, dar da, e foarte bine. doar cei cu acces la rcon pot da



Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
lemonEZAH

[Licensed to kill]



Status: Offline
(since 04-11-2019 15:30)
Joined: 28 Dec 2013
Posts: 7058, Topics: 351
Location: England

Reputation: 99.3
Votes: 483

Post Posted: 26-10-2014, 21:10:25 | Translate post to: ... (Click for more languages)

BoTTy_Cs wrote:
ToaderValy wrote:
Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

public plugin_init ()
{
register_plugin ( "ZP: Give Ammo", "1.0.0", "Arkshine" );
register_clcmd ( "zp_giveap", "CmdGiveAP", ADMIN_RCON, "- zp_giveap <name> <amount> : Give Ammo Packs" );
}

public CmdGiveAP ( id, level, cid )
{
if ( !cmd_access ( id, level, cid, 3 ) )
{
return PLUGIN_HANDLED;
}

new s_Name[ 32 ], s_Amount[ 4 ];

read_argv ( 1, s_Name, charsmax ( s_Name ) );
read_argv ( 2, s_Amount, charsmax ( s_Amount ) );

new i_Target = cmd_target ( id, s_Name, 2 );

if ( !i_Target )
{
client_print ( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}

zp_set_user_ammo_packs ( i_Target, max ( 1, str_to_num ( s_Amount ) ) );

return PLUGIN_HANDLED;
}

Acces la transfer ammo au doar acei admini care au acces la rcon.
// Revin si cu celalalt plugin.



Imi apare erroare aia uita-te sus la imagine intra pe situ ala ...

Foloseste http://imgur.com/ pentru upload image.
Ai aici pluginul compilat.

0 0
  
Back to top
View user's profile Send private message
BoTTy_Cs

[Mentally Stable]



Status: Offline
(since 03-11-2014 12:52)
Joined: 26 Oct 2014
Posts: 13, Topics: 5
Location: Romania

Reputation: 31.4
Votes: 1

Post Posted: 27-10-2014, 15:32:04 | Translate post to: ... (Click for more languages)

http://i.imgur.com/L1SPZMw.png
0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 28-10-2014, 00:12:14 | Translate post to: ... (Click for more languages)

ce incerci sa faci de iti da eroarea aia ?



Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
lemonEZAH

[Licensed to kill]



Status: Offline
(since 04-11-2019 15:30)
Joined: 28 Dec 2013
Posts: 7058, Topics: 351
Location: England

Reputation: 99.3
Votes: 483

Post Posted: 31-10-2014, 23:23:19 | Translate post to: ... (Click for more languages)

In fine, nu inteleg ce incerci sa ne explici aici. Da-ne mai multe indicii.
Ai putin mai jos si pluginul pentru donate ammo.

Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Donate Ammo Packs"
#define VERSION "1.0"
#define AUTHOR "Freakz.Ro in blana"

new g_UserTotalAmmo[33]
new g_CvarAllowDonate
new SayText


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   g_CvarAllowDonate = register_cvar("zp_stats_allow_donate", "1")
   
   register_clcmd("say", "handleSay")
   register_clcmd("say_team", "handleSay")
   
   register_event("HLTV", "RoundStart", "a", "1=0", "2=0")

   SayText = get_user_msgid("SayText")

}

public RoundStart()
{
   if (get_pcvar_num(g_CvarAllowDonate))
      set_task(2.2, "MsgOnRoundStart")
      
}

public MsgOnRoundStart()
{
   if(get_pcvar_num(g_CvarAllowDonate))
      client_printcolor(0, "!g[ZP] !yTo donate others Ammo Packs, type !g/donate")
      
}

public handleSay(id)
{
   new args[64]
   
   read_args(args, charsmax(args))
   remove_quotes(args)
   
   new arg1[16]
   new arg2[32]
   
   strbreak(args, arg1, charsmax(arg1), arg2, charsmax(arg2))
   if (get_pcvar_num(g_CvarAllowDonate) && equal(arg1,"/donate", 7))
      donate(id, arg2)
   
}

public donate(id, arg[])
{
   new to[32], count[10]
   strbreak(arg, to, 31, count, 9)
   
   if (!to[0] || !count[0])
   {
      client_printcolor(id, "!g[ZP] !yUsage: say /donate <name> <amount>")
      return
   }
   new ammo_sender = zp_get_user_ammo_packs(id)
   new ammo
   if (equal(count, "all"))
      ammo = ammo_sender
   else
      ammo = str_to_num(count)
   if (ammo <= 0)
   {
      client_printcolor(id, "!g[ZP] !yWrong ammo quantity!")
      return
   }
   ammo_sender -= ammo
   if (ammo_sender < 0)
   {
      ammo+=ammo_sender
      ammo_sender = 0
      
   }
   new reciever = cmd_target(id, to, (CMDTARGET_ALLOW_SELF))
   if (!reciever || reciever == id)
   {
      client_printcolor(id, "!g[ZP] !yPlayer !g%s !yhas not been found on the server!", to)
      return
   }
   
   zp_set_user_ammo_packs(reciever, zp_get_user_ammo_packs(reciever) + ammo)
   g_UserTotalAmmo[reciever] += ammo
   zp_set_user_ammo_packs(id, ammo_sender)
   new aName[32], vName[32]
   
   get_user_name(id, aName, 31)
   get_user_name(reciever, vName, 31)
   
   set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 6.0)
   show_hudmessage(0, "%s donated %d Ammo Packs to %s!", aName, ammo, vName)
   
}

stock client_printcolor(const id, const input[], any:...)
{
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4") // Green Color
   replace_all(msg, 190, "!y", "^1") // Default Color
   replace_all(msg, 190, "!t", "^3") // Team Color
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
      for ( new i = 0; i < count; i++ )
      {
         if ( is_user_connected(players[i]) )
         {
            message_begin(MSG_ONE_UNRELIABLE, SayText, _, players[i])
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
   }
}

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by EDUTz, 05 December 2014 11:14



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 23-07-2025, 04:36:48
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password