PHP- Kodu:
/* pawN is - Game[R] */
#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>
#include <ColorChat>
#include <ChatColor>
#define PLUGIN "SuperProMod"
#define VERSION "1.0"
#define AUTHOR "Game[R]"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","eDeath","a")
register_logevent("ElBaslayinca",2,"1=Round_Start")
register_clcmd("buy","yasakli");
}
public ElBaslayinca() {
new szMapName[ 64 ]
get_mapname( szMapName, 63 );
if( contain( szMapName, "spm_" ) != -1)
{
for(new all = 1;all <= get_maxplayers();all++) {
set_user_health(all,200)
strip_user_weapons(all)
set_user_gravity(all, 0.5)
set_user_maxspeed(all, 600.0)
set_user_armor(all, 100)
set_lights("c")
give_item(all,"weapon_knife")
give_item(all,"weapon_glock18")
cs_set_user_bpammo(all,CSW_GLOCK18,120)
chat_color(0,"!t Super Pro Mod !g Aktif... Bu Modu Hazirlayan !tGame[R] 'a !gTesekkurler")
}
}
}
public eDeath() {
new szMapName[ 64 ]
get_mapname( szMapName, 63 );
if( contain( szMapName, "spm_" ) != -1)
{
new olduren = read_data(1);
new olen = read_data(2);
if(olen != olduren) {
switch(random_num(1,4)){
case 1: {
give_item(olduren,"weapon_ak47")
ColorChat(olduren,GREEN,"Sansina ^3Ak-47 Geldi")
cs_set_user_bpammo(olduren,CSW_AK47,90)
}
case 2: {
give_item(olduren,"weapon_m4a1")
cs_set_user_bpammo(olduren,CSW_M4A1,90)
ColorChat(olduren,GREEN,"Sansina ^3Colt Geldi :)")
}
case 3: {
give_item(olduren,"weapon_awp")
cs_set_user_bpammo(olduren,CSW_AWP,90)
ColorChat(olduren,GREEN,"Sansina ^3Awp Geldi :)")
}
case 4: {
give_item(olduren,"weapon_mp5navy")
cs_set_user_bpammo(olduren,CSW_MP5NAVY,120)
}
}
give_item(olduren,"weapon_smokegrenade")
chat_color(olduren,"!tSaldirin!!! !gHakettiginizi Alicaksiniz...")
}
}
return PLUGIN_CONTINUE
}
public yasakli(id)
{
new szMapName[ 64 ]
get_mapname( szMapName, 63 );
if( contain( szMapName, "spm_" ) != -1)
{
chat_color(id,"!gBu Komut !tYonetici !gTarafindan !tKapatilmistir.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}