Has_Weapon [message #454384] |
Mon, 12 September 2011 18:00 |
|
Xpert
Messages: 1588 Registered: December 2005 Location: New York City
Karma: 0
|
General (1 Star) |
|
|
This stuff in SSGM doesn't work correctly. It's suppose to say ammunition acquired if the person HAS the weapon, but it says ammunition acquired even if they don't have the weapon.
Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.
Part time streamer - https://twitch.tv/gg_wonder
|
|
|
|
Re: Has_Weapon [message #454387 is a reply to message #454384] |
Mon, 12 September 2011 18:43 |
|
Xpert
Messages: 1588 Registered: December 2005 Location: New York City
Karma: 0
|
General (1 Star) |
|
|
I didn't make it. Came with SSGM.
else if (strstr(Commands->Get_Preset_Name(obj),"POW_Flamethrower_Player"))
{
if (Has_Weapon(sender,"Weapon_Flamethrower_Player"))
{
Send_Message_Player(sender,104,234,40,"Flamethrower fuel acquired.");
Create_2D_WAV_Sound_Player(sender,"m00paft_aqob0001i1evag_snd.wav");
if (!SBHCanPickupDropWeapons)
{
if (strcmp(Commands->Get_Preset_Name(sender),"CnC_Nod_FlameThrower_2SF") == 0)
{
Remove_Weapon(sender,"Weapon_Flamethrower_Player");
}
}
}
else
{
Send_Message_Player(sender,104,234,40,"Flamethrower acquired.");
Create_2D_WAV_Sound_Player(sender,"m00pwft_aqob0001i1evag_snd.wav");
if (!SBHCanPickupDropWeapons)
{
if (strcmp(Commands->Get_Preset_Name(sender),"CnC_Nod_FlameThrower_2SF") == 0)
{
Remove_Weapon(sender,"Weapon_Flamethrower_Player");
}
}
}
}
Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.
Part time streamer - https://twitch.tv/gg_wonder
|
|
|
|
|
Re: Has_Weapon [message #454419 is a reply to message #454384] |
Tue, 13 September 2011 01:31 |
Dave78742
Messages: 26 Registered: May 2009
Karma: 0
|
Recruit |
|
|
Yeah it's pretty much like this for all weapons... it used to say "chaingun aquired" now it says "chaingun ammunition aquired" even if you previously never had the weapon.
St0rm.net Renegade Head Administrator
|
|
|
|