Kod:
//^n\dCoded By Centilmen//
// Bu kısmı değiştirmezsen çok sevinirim :) //
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Centilmen"
new const GLOCK1Model[] = "models/v_glock181.mdl";
new const GLOCK2Model[] = "models/v_glock182.mdl";
new const GLOCK3Model[] = "models/v_glock183.mdl";
new const M4a11Model[] = "models/v_m4a1.mdl";
new const M4a12Model[] = "models/v_m4a1.mdl";
new const M4a13Model[] = "models/v_m4a1.mdl";
new const AK471Model[] = "models/v_ak47.mdl";
new const AK472Model[] = "models/v_ak47.mdl";
new const AK473Model[] = "models/v_ak47.mdl";
new const MP51Model[] = "models/v_mp5.mdl";
new const MP52Model[] = "models/v_mp5.mdl";
new const MP53Model[] = "models/v_mp5.mdl";
new const AWP1Model[] = "models/v_awp.mdl";
new const AWP2Model[] = "models/v_awp.mdl";
new const AWP3Model[] = "models/v_awp.mdl";
new const DEAGLE1Model[] = "models/v_deagle.mdl";
new const DEAGLE2Model[] = "models/v_deagle.mdl";
new const DEAGLE3Model[] = "models/v_deagle.mdl";
new const USP1Model[] = "models/v_usp.mdl";
new const USP2Model[] = "models/v_usp.mdl";
new const USP3Model[] = "models/v_usp.mdl";
new const FAMAS1Model[] = "models/v_famas.mdl";
new const FAMAS2Model[] = "models/v_famas.mdl";
new const FAMAS3Model[] = "models/v_famas.mdl";
new const GALIL1Model[] = "models/v_galil.mdl";
new const GALIL2Model[] = "models/v_galil.mdl";
new const GALIL3Model[] = "models/v_galil.mdl";
new galil[33][3], famas[33][3], usp[33][3], deagle[33][3], mp5[33][3], glock[33][3], m4a1[33][3], ak47[33][3], awp[33][3]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /skin","genelmenu")
register_clcmd("/m4a1","m4a1menu")
register_clcmd("/ak47","ak47menu")
//register_clcmd("/mp5","mp5menu")
register_clcmd("/awp","awpmenu")
register_clcmd("/glock18","glockmenu")
register_clcmd("/usp","uspmenu")
register_clcmd("/deagle","deaglemenu")
register_clcmd("/famas","famasmenu")
register_clcmd("/galil","galilmenu")
register_event("CurWeapon", "CurentWeapon", "be", "1=1");
}
public genelmenu(id) {
new menuz;
static amenu[512]
formatex(amenu,charsmax(amenu),"\rOzel Skin Menusu^n\dCoded By Centilmen")
menuz = menu_create(amenu,"genel_menu_devam")
formatex(amenu,charsmax(amenu),"\wAK47 Skinleri")
menu_additem(menuz,amenu,"2")
formatex(amenu,charsmax(amenu),"\wM4A1 Skinleri")
menu_additem(menuz,amenu,"1")
formatex(amenu,charsmax(amenu),"\wAWP Skinleri")
menu_additem(menuz,amenu,"4")
formatex(amenu,charsmax(amenu),"\wMP5 Skinleri")
menu_additem(menuz,amenu,"3")
formatex(amenu,charsmax(amenu),"\wFAMAS Skinleri")
menu_additem(menuz,amenu,"8")
formatex(amenu,charsmax(amenu),"\wGALIL Skinleri")
menu_additem(menuz,amenu,"9")
formatex(amenu,charsmax(amenu),"\wGLOCK18 Skinleri")
menu_additem(menuz,amenu,"5")
formatex(amenu,charsmax(amenu),"\wUSP Skinleri")
menu_additem(menuz,amenu,"6")
formatex(amenu,charsmax(amenu),"\wDEAGLE Skinleri")
menu_additem(menuz,amenu,"7")
menu_setprop(menuz,MPROP_NEXTNAME,"\yIleri");
menu_setprop(menuz,MPROP_BACKNAME,"\yGeri");
menu_setprop(menuz,MPROP_EXITNAME,"\rCikis");
menu_setprop(menuz, MPROP_PERPAGE, 0 );
menu_setprop(menuz,MPROP_EXIT,MEXIT_ALL);
menu_display(id,menuz,0);
}
public genel_menu_devam(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu)
return PLUGIN_HANDLED
}
new access,callback,data[6],iname[64]
menu_item_getinfo(menu,item,access,data,5,iname,63,callback)
new key = str_to_num(data)
if(key == 1) client_cmd(id,"/m4a1")
if(key == 2) client_cmd(id,"/ak47")
if(key == 3) client_cmd(id,"/mp5")
if(key == 4) client_cmd(id,"/awp")
if(key == 5) client_cmd(id,"/glock18")
if(key == 6) client_cmd(id,"/usp")
if(key == 7) client_cmd(id,"/deagle")
if(key == 8) client_cmd(id,"/famas")
if(key == 9) client_cmd(id,"/galil")
menu_destroy(menu)
return PLUGIN_HANDLED;
}
public galilmenu(id) {
new menu = menu_create("\yGalil Skin Menu", "galilmenudevam")
if(galil[id][0] == 1){
menu_additem(menu, "\wGALIL 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wGALIL 1", "1", 0); }
if(galil[id][1] == 1){
menu_additem(menu, "\wGALIL 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wGALIL 2", "2", 0); }
if(galil[id][2] == 1){
menu_additem(menu, "\wGALIL 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wGALIL 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public galilmenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
galil[id][0] = 1
galil[id][1] = 0
galil[id][2] = 0
renkli_yazi(id,"!tGalil 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
galil[id][0] = 0
galil[id][1] = 1
galil[id][2] = 0
renkli_yazi(id,"!tGalil 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
galil[id][0] = 0
galil[id][1] = 0
galil[id][2] = 1
renkli_yazi(id,"!tGalil 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public famasmenu(id) {
new menu = menu_create("\yFamas Skin Menu", "famasmenudevam")
if(famas[id][0] == 1){
menu_additem(menu, "\wFAMAS 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wFAMAS 1", "1", 0); }
if(famas[id][1] == 1){
menu_additem(menu, "\wFAMAS 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wFAMAS 2", "2", 0); }
if(famas[id][2] == 1){
menu_additem(menu, "\wFAMAS 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wFAMAS 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public famasmenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
famas[id][0] = 1
famas[id][1] = 0
famas[id][2] = 0
renkli_yazi(id,"!tFamas 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
famas[id][0] = 0
famas[id][1] = 1
famas[id][2] = 0
renkli_yazi(id,"!tFamas 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
famas[id][0] = 0
famas[id][1] = 0
famas[id][2] = 1
renkli_yazi(id,"!tFamas 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public deaglemenu(id) {
new menu = menu_create("\yDeagle Skin Menu", "deaglemenudevam")
if(deagle[id][0] == 1){
menu_additem(menu, "\wDEAGLE 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wDEAGLE 1", "1", 0); }
if(deagle[id][1] == 1){
menu_additem(menu, "\wDEAGLE 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wDEAGLE 2", "2", 0); }
if(deagle[id][2] == 1){
menu_additem(menu, "\wDEAGLE 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wDEAGLE 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public deaglemenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
deagle[id][0] = 1
deagle[id][1] = 0
deagle[id][2] = 0
renkli_yazi(id,"!tDeagle 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
deagle[id][0] = 0
deagle[id][1] = 1
deagle[id][2] = 1
renkli_yazi(id,"!tDeagle 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
deagle[id][0] = 0
deagle[id][1] = 0
deagle[id][2] = 1
renkli_yazi(id,"!tDeagle 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public uspmenu(id) {
new menu = menu_create("\yUSP Skin Menu", "uspmenudevam")
if(usp[id][0] == 1){
menu_additem(menu, "\wUSP 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wUSP 1", "1", 0); }
if(usp[id][1] == 1){
menu_additem(menu, "\wUSP 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wUSP 2", "2", 0); }
if(usp[id][2] == 1){
menu_additem(menu, "\wUSP 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wUSP 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public uspmenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
usp[id][0] = 1
usp[id][1] = 0
usp[id][2] = 0
renkli_yazi(id,"!tUSP 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
usp[id][0] = 0
usp[id][1] = 1
usp[id][2] = 0
renkli_yazi(id,"!tUSP 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
usp[id][0] = 0
usp[id][1] = 0
usp[id][2] = 1
renkli_yazi(id,"!tUSP 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public glockmenu(id) {
new menu = menu_create("\yGlock18 Skin Menu", "glockmenudevam")
if(glock[id][0] == 1){
menu_additem(menu, "\wGLOCK 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wGLOCK 1", "1", 0); }
if(glock[id][1] == 1){
menu_additem(menu, "\wGLOCK 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wGLOCK 2", "2", 0); }
if(glock[id][2] == 1){
menu_additem(menu, "\wGLOCK 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wGLOCK 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public glockmenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
glock[id][0] = 1
glock[id][1] = 0
glock[id][2] = 0
renkli_yazi(id,"!tGLOCK 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
glock[id][0] = 0
glock[id][1] = 0
glock[id][2] = 1
renkli_yazi(id,"!tGLOCK 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
glock[id][0] = 0
glock[id][1] = 0
glock[id][2] = 1
renkli_yazi(id,"!tGLOCK 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public awpmenu(id) {
new menu = menu_create("\yAWP Skin Menu", "awpmenudevam")
if(awp[id][0] == 1){
menu_additem(menu, "\wAWP 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wAWP 1", "1", 0); }
if(awp[id][1] == 1){
menu_additem(menu, "\wAWP 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wAWP 2", "2", 0); }
if(awp[id][2] == 1){
menu_additem(menu, "\wAWP 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wAWP 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public awpmenudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
awp[id][0] = 1
awp[id][1] = 0
awp[id][2] = 0
renkli_yazi(id,"!tAWP 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
awp[id][0] = 0
awp[id][1] = 1
awp[id][2] = 0
renkli_yazi(id,"!tAWP 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
awp[id][0] = 0
awp[id][1] = 0
awp[id][2] = 1
renkli_yazi(id,"!tAWP 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public mp5menu(id) {
new menu = menu_create("\yMP5 Skin Menu", "mp5menudevam")
if(mp5[id][0] == 1){
menu_additem(menu, "\wMP5 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wMP5 1", "1", 0); }
if(mp5[id][1] == 1){
menu_additem(menu, "\wMP5 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wMP5 2", "2", 0); }
if(mp5[id][2] == 1){
menu_additem(menu, "\wMP5 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wMP5 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public mp5menudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
mp5[id][0] = 1
mp5[id][1] = 0
mp5[id][2] = 0
renkli_yazi(id,"!tMP5 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
mp5[id][0] = 0
mp5[id][1] = 1
mp5[id][2] = 0
renkli_yazi(id,"!tMP5 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
mp5[id][0] = 0
mp5[id][1] = 0
mp5[id][2] = 1
renkli_yazi(id,"!tMP5 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public ak47menu(id) {
new menu = menu_create("\yAK47 Skin Menu", "ak47menudevam")
if(ak47[id][0] == 1){
menu_additem(menu, "\wAK47 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wAK47 1", "1", 0); }
if(ak47[id][1] == 1){
menu_additem(menu, "\wAK47 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wAK47 2", "2", 0); }
if(ak47[id][2] == 1){
menu_additem(menu, "\wAK47 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wAK47 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public ak47menudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
ak47[id][0] = 1
ak47[id][1] = 0
ak47[id][2] = 0
renkli_yazi(id,"!tAK47 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
ak47[id][0] = 0
ak47[id][1] = 1
ak47[id][2] = 0
renkli_yazi(id,"!tAK47 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
ak47[id][0] = 0
ak47[id][1] = 0
ak47[id][2] = 1
renkli_yazi(id,"!tAK47 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public m4a1menu(id) {
new menu = menu_create("\yM4a1 Skin Menu", "m4a1menudevam")
if(m4a1[id][0] == 1){
menu_additem(menu, "\wM4a1 1 \r[ \yAKTIF \r]", "1", 0); }
else {
menu_additem(menu, "\wM4a1 1", "1", 0); }
if(m4a1[id][1] == 1){
menu_additem(menu, "\wM4a1 2 \r[ \yAKTIF \r]", "2", 0); }
else {
menu_additem(menu, "\wM4a1 2", "2", 0); }
if(m4a1[id][2] == 1){
menu_additem(menu, "\wM4a1 3 \r[ \yAKTIF \r]", "3", 0); }
else {
menu_additem(menu, "\wM4a1 3", "3", 0); }
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public m4a1menudevam(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
m4a1[id][0] = 1
m4a1[id][1] = 0
m4a1[id][2] = 0
renkli_yazi(id,"!tM4A1 1 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 2: {
m4a1[id][0] = 0
m4a1[id][1] = 1
m4a1[id][2] = 0
renkli_yazi(id,"!tM4A1 2 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
case 3: {
m4a1[id][0] = 0
m4a1[id][1] = 0
m4a1[id][2] = 1
renkli_yazi(id,"!tM4A1 3 Skinini Aktiflestirdin!")
CurentWeapon(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public plugin_precache()
{
precache_model(GLOCK1Model);
precache_model(GLOCK2Model);
precache_model(GLOCK3Model);
precache_model(M4a11Model);
precache_model(M4a12Model);
precache_model(M4a13Model);
precache_model(M4a11Model);
precache_model(AK471Model);
precache_model(AK472Model);
precache_model(AK473Model);
precache_model(MP51Model);
precache_model(MP52Model);
precache_model(MP53Model);
precache_model(AWP1Model);
precache_model(AWP2Model);
precache_model(AWP3Model);
precache_model(DEAGLE1Model);
precache_model(DEAGLE2Model);
precache_model(DEAGLE3Model);
precache_model(USP1Model);
precache_model(USP2Model);
precache_model(USP3Model);
precache_model(FAMAS1Model);
precache_model(FAMAS2Model);
precache_model(FAMAS3Model);
precache_model(GALIL1Model);
precache_model(GALIL2Model);
precache_model(GALIL3Model);
}
public CurentWeapon(id) {
if(get_user_weapon(id) == CSW_GLOCK18) {
if(glock[id][0])
set_pev(id, pev_viewmodel2, GLOCK1Model);
if(glock[id][1])
set_pev(id, pev_viewmodel2, GLOCK2Model);
if(glock[id][2])
set_pev(id, pev_viewmodel2, GLOCK3Model);
}
if(get_user_weapon(id) == CSW_AK47) {
if(ak47[id][0])
set_pev(id, pev_viewmodel2, AK471Model);
if(ak47[id][1])
set_pev(id, pev_viewmodel2, AK472Model);
if(ak47[id][2])
set_pev(id, pev_viewmodel2, AK473Model);
}
if(get_user_weapon(id) == CSW_AWP) {
if(awp[id][0])
set_pev(id, pev_viewmodel2, AWP1Model);
if(awp[id][1])
set_pev(id, pev_viewmodel2, AWP2Model);
if(awp[id][2])
set_pev(id, pev_viewmodel2, AWP3Model);
}
if(get_user_weapon(id) == CSW_M4A1) {
if(m4a1[id][0])
set_pev(id, pev_viewmodel2, M4a11Model);
if(m4a1[id][1])
set_pev(id, pev_viewmodel2, M4a12Model);
if(m4a1[id][2])
set_pev(id, pev_viewmodel2, M4a13Model);
}
if(get_user_weapon(id) == CSW_MP5NAVY) {
if(mp5[id][0])
set_pev(id, pev_viewmodel2, MP51Model);
if(mp5[id][1])
set_pev(id, pev_viewmodel2, MP52Model);
if(mp5[id][2])
set_pev(id, pev_viewmodel2, MP53Model);
}
if(get_user_weapon(id) == CSW_DEAGLE) {
if(deagle[id][0])
set_pev(id, pev_viewmodel2, DEAGLE1Model);
if(deagle[id][1])
set_pev(id, pev_viewmodel2, DEAGLE2Model);
if(deagle[id][2])
set_pev(id, pev_viewmodel2, DEAGLE3Model);
}
if(get_user_weapon(id) == CSW_USP) {
if(usp[id][0])
set_pev(id, pev_viewmodel2, USP1Model);
if(usp[id][1])
set_pev(id, pev_viewmodel2, USP2Model);
if(usp[id][2])
set_pev(id, pev_viewmodel2, USP3Model);
}
if(get_user_weapon(id) == CSW_FAMAS) {
if(famas[id][0])
set_pev(id, pev_viewmodel2, FAMAS1Model);
if(famas[id][1])
set_pev(id, pev_viewmodel2, FAMAS2Model);
if(famas[id][2])
set_pev(id, pev_viewmodel2, FAMAS3Model);
}
if(get_user_weapon(id) == CSW_GALIL) {
if(galil[id][0])
set_pev(id, pev_viewmodel2, GALIL1Model);
if(galil[id][1])
set_pev(id, pev_viewmodel2, GALIL2Model);
if(galil[id][2])
set_pev(id, pev_viewmodel2, GALIL3Model);
}
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
if (id) players[0] = id; else get_players(players, count, "ch");{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Sıralamayı yaptım . Bıçağı da gün içinde tamamlayıp atarım .