AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_set_user_bpammo what is bad ? (https://forums.alliedmods.net/showthread.php?t=92543)

~Ice*shOt 05-16-2009 16:07

cs_set_user_bpammo what is bad ?
 
PHP Code:

public fw_PlayerSpawn_Post(id)
{
switch (
PlayerLevel[id])
{
case 
0:
{
give_item (id"weapon_glock18"); 
cs_set_user_bpammo(id,glock18,1000)

case 
1

give_item (id"weapon_usp"); 
cs_set_user_bpammo(id,usp,1000)

case 
2

give_item (id"weapon_p228"); 
cs_set_user_bpammo(id,p228,1000)

case 
3

give_item (id"weapon_fiveseven");
cs_set_user_bpammo(id,fiveseven,1000)

case 
4

give_item (id"weapon_deagle");
cs_set_user_bpammo(id,deagle,1000)

case 
5

give_item (id"weapon_elite");
cs_set_user_bpammo(id,elite,1000)

case 
6

give_item (id"weapon_tmp"); 
set_user_bpammo(id,tmp,1000)
}
case 
7

give_item (id"weapon_mac10");
cs_set_user_bpammo(id,mac10,1000)

case 
8

give_item (id"weapon_ump45");
cs_set_user_bpammo(id,ump45,1000)

case 
9

give_item (id"weapon_mp5navy");
cs_set_user_bpammo(id,mp5navy,1000)

case 
10

give_item (id"weapon_p90");
cs_set_user_bpammo(id,p90,1000)

case 
11

give_item (id"weapon_famas");
cs_set_user_bpammo(id,famas,1000)

case 
12

give_item (id"weapon_galil");
cs_set_user_bpammo(id,galil,1000)

case 
13

give_item (id"weapon_m3");
cs_set_user_bpammo(id,m3,1000)

case 
14

give_item (id"weapon_ak47");
cs_set_user_bpammo(id,ak47,1000)

case 
15

give_item (id"weapon_m4a1");
cs_set_user_bpammo(id,m4a1,1000)

case 
16:
{
give_item (id"weapon_sg550");
cs_set_user_bpammo(id,sg550,1000)

case 
17

give_item (id"weapon_g3sg1");
cs_set_user_bpammo(id,g3sg1,1000)

case 
18

give_item (id"weapon_sg552");
cs_set_user_bpammo(id,sg552,1000)


what is bad with this code ? or all line's it's good ?

xPaw 05-16-2009 16:14

Re: cs_set_user_bpammo what is bad ?
 
all line's it's bad.

minimiller 05-16-2009 16:14

Re: cs_set_user_bpammo what is bad ?
 
test it and see?

One 05-16-2009 16:14

Re: cs_set_user_bpammo what is bad ?
 
error please?

& maybe MAYBE u forgot cstrike module to include

i dont have studio :(

xPaw 05-16-2009 16:18

Re: cs_set_user_bpammo what is bad ?
 
PHP Code:

cs_set_user_bpammoidCSW_*, 100 );

// ex.

cs_set_user_bpammoidCSW_GLOCK100 ); 


fysiks 05-16-2009 16:56

Re: cs_set_user_bpammo what is bad ?
 
Quote:

Originally Posted by One (Post 828768)
i dont have studio :(


What does that have to do with anything?

Exolent[jNr] 05-16-2009 17:04

Re: cs_set_user_bpammo what is bad ?
 
Quote:

Originally Posted by fysiks (Post 828796)
What does that have to do with anything?

He probably relies on the default highlighting of the studio.

Metanabol 05-16-2009 17:08

Re: cs_set_user_bpammo what is bad ?
 
ice-show scripting with microsoft office + paint.

minimiller 05-16-2009 18:08

Re: cs_set_user_bpammo what is bad ?
 
it might help if you didnt post the same code in a new thread
keep it all in one please
(http://forums.alliedmods.net/showthread.php?t=92534)

~Ice*shOt 05-17-2009 02:45

Re: cs_set_user_bpammo what is bad ?
 
THX, xPaw


All times are GMT -4. The time now is 01:26.

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