This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

More help learning


Post New Thread Reply   
 
Thread Tools Display Modes
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-21-2004 , 19:41  
Reply With Quote #51

The base plugin I made works MagicShot. Anyways I will try to do what you said. I'll have to look at other plugins that give guns and stuff so I know what I'm doing but I will try to do it on my own. Some questions I have :
1. How would I give the guns?
2. How would I only give it to alive players?

I pretty much have a good idea about this one , thanks you guys I actually know some stuff now
Peli is offline
Send a message via MSN to Peli
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-21-2004 , 21:13  
Reply With Quote #52

Quote:
Originally Posted by Peli
1. How would I give the guns?
2. How would I only give it to alive players?
1. Take a look @ Pistol Arena by Knekter http://forums.alliedmods.net/showthread.php?t=366
Too See how give weapon works..

2. I will have to get back to you on the only the alive part. I haven't work that much with give_weapon
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-21-2004 , 22:07  
Reply With Quote #53

Thanks MagicShot , this gives me alot of information. I'm sorry I should look at the other parts of the forum more.
Peli is offline
Send a message via MSN to Peli
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-21-2004 , 22:09  
Reply With Quote #54

Code:
new num, players[32]; get_players(players,num,"a"); for(new i=0;i < num; i++) {     //do whatever using     //players[i] as the id }
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-22-2004 , 14:44  
Reply With Quote #55

How would I do the rest? Kind of confused.
Peli is offline
Send a message via MSN to Peli
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-22-2004 , 19:31   hehe
Reply With Quote #56

u saw my plugin use this:

Code:
new players[32], numberofplayers, i, cur_id get_players(players,numberofplayers) for (i=0;i<numberofplayers;i++) {     cur_id = players[i]     give_item(cur_id,"weapon_deagle")     give_item(cur_id,"ammo_50ae")     give_item(cur_id,"ammo_50ae")           give_item(cur_id,"ammo_50ae")             give_item(cur_id,"ammo_50ae")             give_item(cur_id,"ammo_50ae")               give_item(cur_id,"ammo_50ae")                 give_item(cur_id,"ammo_50ae") }
[/small]
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-22-2004 , 23:56  
Reply With Quote #57

Okay , I will work on a plugin , I got a good idea it is probably made already but who cares I'm practicing. How would I make a menu with options? Someone please help , that's all I don't know , the rest I will look at your plugin and get some info.
Peli is offline
Send a message via MSN to Peli
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-23-2004 , 06:23  
Reply With Quote #58

You can use cs module to give ammo in a better way:

Code:
/* Get amount of ammo in backpack on a user for a specific weapon. * Look in amxconst.inc for weapon types: CSW_*. * Weapons on the same line uses the same ammo type: * awm * scout, ak, g3 * para * famas, m4a1, aug, sg550, galil, sg552 * m3, xm * usp, ump, mac * fiveseven, p90 * deagle * p228 * glock, mp5, tmp, elites * flash * he * smoke */ native cs_get_user_bpammo(index, weapon); /* Restock/remove ammo in a user's backpack. */ native cs_set_user_bpammo(index, weapon, amount); /* Returns amount of ammo in weapon's clip. */ native cs_get_weapon_ammo(index); /* Set amount of ammo in weapon's clip. */ native cs_set_weapon_ammo(index, newammo);
Johnny got his gun is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-23-2004 , 19:50  
Reply With Quote #59

Nobody knows? Please if you do tell me , atleast that will give me something to practice on and I can also use it on my server.
Peli is offline
Send a message via MSN to Peli
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-23-2004 , 20:05  
Reply With Quote #60

Have you not been reading?
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:20.


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