AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   give a shield (https://forums.alliedmods.net/showthread.php?t=121372)

Toastt 03-14-2010 23:33

give a shield
 
how do i give all players a shield?

wrecked_ 03-14-2010 23:38

Re: give a shield
 
For loop and give each one a shield.

Toastt 03-14-2010 23:40

Re: give a shield
 
no i mean like, whats the name?

like deagle is deagle
glock is glock18 (i think XD)
etc..

Toastt 03-14-2010 23:44

Re: give a shield
 
is that really it ? o.O

wrecked_ 03-14-2010 23:47

Re: give a shield
 
Did you even try testing/looking for it?

It's as simple as trial and error, don't just come to the forums with a little question such as this. I'm sure it would've easily been attainable by searching. Use some common sense please.

grimvh2 03-15-2010 13:31

Re: give a shield
 
Wrecked is right, you should search first.

Anyway the name is "weapon_shield" (thats way to obviously) then loop all players

PHP Code:

new players[32],num
get_players
(players,num,"ac")
// Im not sure but "a" should be alive and "c" no bots
for(new i=0;i<num;i++)
{
    
give_item(players[i],"weapon_shield")



ConnorMcLeod 03-15-2010 13:59

Re: give a shield
 
http://wiki.amxmodx.org/CS_Weapons_Information

Doc-Holiday 03-15-2010 18:29

Re: give a shield
 
why would you do that instead of just doing it at player spawn?

Seta00 03-16-2010 10:12

Re: give a shield
 
Because you can control the moment when users will receive their shields.


All times are GMT -4. The time now is 08:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.