Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Infamous2017
Membru, skill +1
Membru, skill +1
Posts: 228
Joined: 11 Feb 2017, 12:13
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times
Contact:

12 Mar 2021, 19:10

Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX
RoyalServer
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

13 Mar 2021, 16:32

Infamous2017 wrote:
12 Mar 2021, 19:10
Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX
Isn't the USP default pistol at spawn ?

Code: Select all

#include <amxmodx>
#include <fun>
#include <hamsandwich>

new Weapon[][] ={
    "weapon_usp"
   //  "weapon_ak47"
}
public plugin_init() {
    RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public fwHamPlayerSpawnPost(id) {
    if (is_user_alive(id)) {
        new szWeapon = random( sizeof Weapon);
        give_item( id, Weapon[ szWeapon] );
    }
}
taken from: https://forums.alliedmods.net/showthrea ... ost2343658
You can add multiple weapons, using crame at

Code: Select all

new Weapon[][] ={
    "weapon_usp"
   //  "weapon_ak47"
}
For example, give usp and AK-47

Code: Select all

new Weapon[][] ={
    "weapon_usp",
    "weapon_ak47"
}
Last edited by levin on 13 Mar 2021, 21:20, edited 1 time in total.
Reason: For example, give usp and AK-47 / and > OR (is random)
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
Infamous2017
Membru, skill +1
Membru, skill +1
Posts: 228
Joined: 11 Feb 2017, 12:13
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times
Contact:

13 Mar 2021, 16:51

thx, yes the pistol was not there after spawn... Thx for your help.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests