User
Pass
2FA
 
 

Cerere plugin get ammo

 
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 Message808
licensse

[Mentally Stable]



Status: Offline
(since 22-05-2020 20:07)
Joined: 31 Jul 2018
Posts: 70, Topics: 28
Location: Moldova, Republic of

Reputation: -24.6
Votes: 1

Post Posted: 05-08-2018, 15:27:31 | Translate post to: ... (Click for more languages)

Vreau pluginul care din comanda doar adminii sasi poata da ammo dar nu vrea pluginul giveap pentru ca mai mult de 999 nu poti seta vreau un plugin care iti poti seta cat vrei,am plugin de save_ammo.
0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 05-08-2018, 17:46:24 | 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_LEVEL_H, "- 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[ 11 ];
   
   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;
}


zp_giveap "nume" "suma"
Exemplu: zp_giveap inllove 99999

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

[Mentally Stable]



Status: Offline
(since 22-05-2020 20:07)
Joined: 31 Jul 2018
Posts: 70, Topics: 28
Location: Moldova, Republic of

Reputation: -24.6
Votes: 1

Post Posted: 05-08-2018, 18:44:02 | Translate post to: ... (Click for more languages)

InLoveCs 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_LEVEL_H, "- 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[ 11 ];
   
   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;
}


zp_giveap "nume" "suma"
Exemplu: zp_giveap inllove 99999


multumesc rezolvat esti cel mai tare

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 InLoveCs, 05 August 2018 19:39



 
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 07-05-2024, 09:30:49
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x