using System;using System.Collections.Generic;using System.Text;using System.Timers;using Nexus;namespace iSnipe{ public class iSnipe : RomeExt { public static DamageInfo info; //damage information class public static RomeSoldier soldier; //player-soldier information class public static Timer timer = new Timer(100); //initialising our timer which will be called 10 times a second public override void OnLevelLoading(string name, bool is_singleplayer) //our callback that gets called by server when loading a level { if (!is_singleplayer) //check if there's more than 1 player { SetInstantSpawnEnabled(true); //allow instant spawn after death SetUnlimitedMagsEnabled(false); //disallow unlimited bullet magazines SetUnlimitedAmmoEnabled(false); //disallow unlimited ammo storage SetVehiclesEnabled(false); //disallow all vehicles in server SetWeaponsEnabled(false, new List<string> { "M24" }); //disallow all weapons except M24 sniper rifle SetAllowedKits(new List<string>() { "KIT_RECON" }); //disallow all kits except Recon kit info.ExplosionDamage = false; //explosions will now do 0 damage info.DemolitionDamage = false; //destroyed building which will collapse won't do any damage to players beneath them info.Stamina = 0x7F800000; //set stamina to infinity a.k.a never stop sprinting } } public override void OnLevelLoaded() //our callback that gets called by server when level has been loaded { TimerCheck(); //calling a timer check } public void TimerCheck() //our timer check { timer.Elapsed += new ElapsedEventHandler(OnTimedEvent); //call event when 0.1 second passed timer.Interval = 100; //interval is set to 0.1 second timer.Enabled = true; //enable elapsed event handler } public void OnTimedEvent(object source, ElapsedEventArgs e) //our timed event for each 0.1 second { OnPlayerUpdate(soldier, info); //call update function } public void OnPlayerUpdate(RomeSoldier r_sold, DamageInfo d_info) //our update callback thats called each 100 milliseconds { //do stuff here } public override void OnExtensionLoaded() //our callback that gets called when extension is loaded { //do stuff here } }} Parsed in 0.011 seconds, using GeSHi 1.0.8.4 用一生說愛你
5歲的時候,我說我愛你。
你歪著腦袋,眨著水晶般的大眼睛,
疑惑地問我:“什麼意思呀?”
15歲的時候,我說我愛你,
你的臉紅得像火燒雲,頭深深地低著,
擺弄著衣襟,你好像在笑。
20歲的時候,我說我愛你,
你把頭靠在我的肩上,緊緊地挽住我的手臂,
像是下一秒我就要消失一樣。
25歲的時候,我說我愛你,
你把早餐放在桌上,跑過來刮了一下我的鼻子說:
“知道了!嬾蟲,該起床了!”
30歲的時候,我說我愛你,
你笑著說:“你呀!要是真的愛我,就別下了班到處跑,
還有,別再忘了我叫你買的菜!”
40歲的時候,我說我愛你,
你邊收拾碗筷邊無表情的嘟囔著:
“行了,行了,快去給孩子復習功課去吧!”
50歲的時候,我說我愛你,
你打著毛線頭也不抬:“真的?
你心裏是不是巴不得我早點兒死掉。”
然後就咯咯咯地笑個不停。
60歲的時候,我說我愛你,
你笑著捶了我一拳:
"死老頭子!孫子都這麼大了,還貧嘴!
70歲的時候,我們坐在搖椅上,戴著老花鏡,
欣賞著50年前我給你的情書,
我們已經佈滿皺紋的手又握在了一起,
那時侯我說我愛你,
你深情地望著我,
其實你那已經皺紋滿面的臉仍是那麼美麗……
爐子上的開水咕嘟咕嘟地冒煙,
溫馨的暖意充滿了整個屋子........ ......
80歲的時候,你說你愛我。
我什麼也沒說,因為我流淚了,beats耳機專賣店,
但是那是我人生最最快樂的日子,
因為你終於說出了那句“我--愛--你"。
- May 14 Tue 2013 10:23
Emulator Nexus BFBC2 Server Official Mod [Sniper]用一生說愛
close
全站熱搜
留言列表