Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- 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:
Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX
- CryWolf
- 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:
Isn't the USP default pistol at spawn ?Infamous2017 wrote: ↑12 Mar 2021, 19:10Hello, Need Plugin who give every CT Player an USP Gun when Spawn.. THX
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] );
}
}
You can add multiple weapons, using crame at
Code: Select all
new Weapon[][] ={
"weapon_usp"
// "weapon_ak47"
}
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)
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
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV
-
- 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:
thx, yes the pistol was not there after spawn... Thx for your help.