SniperPlayMode "First Plugin" - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Saturday, 10 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » AMX Mod X » Plugins » Unapproved/Old Plugins » SniperPlayMode "First Plugin" (Still Learn Amxx)
SniperPlayMode "First Plugin"
Grade: Copral daffa_budimanDate: Thursday, 03 September 15, 7:17 PM | Message # 1
Copral
Clan: Member
Experience: 32
Status: Offline
Selamat Malam CSF biggrin
Oke pada hari ini saya akan share Plugin Pertama saya hehe maaf kalau masih kurang bagus maklum baru blajar :v

"SniperPlayMode"

Function :
"Plugin ini akan memberikan Senjata Sniper Biasa dari CS 1.6 "Scout" dan masing dapat senjata itu Dan juga tersedia HE & Smoke Grenade
"
Catatan :
Karna belum tahu apa work atau tidak nya silahkan di coba dulu karna
Faktor Utama nya CS saya gk ada :v 

Oke Ini dia link nya dan Selamat Mencoba gan biggrin

Credits :
TDB Modification (Some Edit Small Script)
Chocolatos (Tutorial Weapon Spawn)

Sorry for Missing Credits
Attachments: SniperPlayMode.sma(1Kb)
 
Grade: Commander DavidJrDate: Wednesday, 09 September 15, 10:53 AM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
Event yang sm lebih baik di panggil melalu 1 function.

Code
register_event("ResetHud", "admin_weapons", "b")   
        
      register_event("ResetHud", "bot_weapons", "b")


->

Code
register_event("ResetHUD", "Event_ResetHUD", "b")


Code
public admin_weapons(id)
{
      if(is_user_alive(id))
      {
          give_item(id, "weapon_hegrenade")
          give_item(id, "weapon_smokegrenade")
          give_item(id, "weapon_scout")   
          give_item(id, "ammo_762nato")   
          give_item(id, "ammo_762nato")   
      }
}

public bot_weapons(id)
{
      if(is_user_bot(id))
      {
          give_item(id, "weapon_hegrenade")
          give_item(id, "weapon_smokegrenade")
          give_item(id, "weapon_scout")
          give_item(id, "ammo_762nato")   
          give_item(id, "ammo_762nato")   
      }
}


->

Code
public Event_ResetHUD(id)
{
      if(is_user_alive(id) || is_user_bot(id))
      {
          give_item(id, "weapon_hegrenade")
          give_item(id, "weapon_smokegrenade")
          give_item(id, "weapon_scout")   
          give_item(id, "ammo_762nato")   
          give_item(id, "ammo_762nato")   
      }
}


Lebih hemat memory.

Unapproved.


posted via BlackBerry

Personal Site | CSF Website
 
Forum » AMX Mod X » Plugins » Unapproved/Old Plugins » SniperPlayMode "First Plugin" (Still Learn Amxx)
Page 1 of 11
Search:

Mirum
sample map