eklentide sorun yok ise, zaten zaman = 0 olduğunda sayacın durması lazım ?
Böyle sayacı başlattığım publici atmaya gerek yok böyle yaptım durdurmayı nasıl yapacağız bilmiyorum yardımcı olur musunuz ayrı bir publicte sayacı durdur yapıcamPHP- Kodu:
public birdakika(id) {
set_task(1.0,"birdakika",0+task)
zaman--
set_hudmessage( 61, 214, 369, 0.3, 0.4, 0, 0.0, 1.5, 0.0, 0.0, 1 );
show_hudmessage( 0, "[ OTOMATIK ROKET ICIN GERI SAYIM ]^n %i ^n Saniye Sonra Roket Atilacaktir ", zaman );
if(zaman == 0) {
server_cmd("amx_show_activity 0");
server_cmd("amx_rocket @T");
server_cmd("amx_show_activity 2");
ColorChat(0, GREEN,"%s ^1[ ^3Geri Sayim Doldu ^1] Yolcu Yolunda Gerek, Iyi Yolculuklar Efenimm.");
remove_task(0+task)
}
else if(zaman == 3){
emit_sound(0, CHAN_AUTO, "osmuzik/321.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
}
Konu Furkan Dize tarafından (25-06-13 Saat 01:08 ) değiştirilmiştir.
[ OSMANLI IMP # F-TIPI JAILBREAK ]
[ İMAN AHLAK ADALET ]
[ Pit10 ]
-facebook-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
-diğer sosyal ağlarımız-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
eklentide sorun yok ise, zaten zaman = 0 olduğunda sayacın durması lazım ?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/
Hacım yanlış anladın eklenti çalışıyor esktradan bir tane daha seçenek ekliyeceğim mesela buna ekle demiyorum bu 1. Seçenektte
1.Roket at
2.Sayacı Durdur olucak sayacı durdurunca geri sayımı durdurucak budur yani hacı![]()
[ OSMANLI IMP # F-TIPI JAILBREAK ]
[ İMAN AHLAK ADALET ]
[ Pit10 ]
-facebook-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
-diğer sosyal ağlarımız-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
bir global değişken yarat. Örneğin;
new durdur;
sayaç publicinin içine
if(durdur) return PLUGIN_HANDLED
ekle en başa,
menü seçeneğini de durdur = true şeklinde ayarla.
Bu genel olarak çalışır fakat tam kod olmadan kesin bir şey diyemem
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/
- - - - - - - - - -PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Rocket"
#define VERSION "1.0"
#define AUTHOR "Pit10"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /menu","menuac");
}
public menuac( id )
{
if (get_user_team(id) == 2 && is_user_alive(id))
{
new menu = menu_create("\y[ Gardiyanlara Ozel Roket Menusu ] ","Ctmenu")
menu_additem(menu, "Rocket At", "1" );
menu_additem(menu, "Sureyi Durdur", "2" );
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
return PLUGIN_HANDLED;
}
public Ctmenu(id,menu,item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE;
}
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)
if(get_user_team(id) == 2)
{
switch(key)
{
case 1:
{
birdakika(id)
}
case 2:
{
durdur(id);
// İşte amaç burda 1 i seçince iyi güzel plugin 1 dakika sonra roket atıyor vs falan ama yanlışlıkla basınca durduramıyorum roketi bu yüzden de süreyi durdur gibi bir şey istiyorum aga :) sağol şimdiden .
}
public birdakika(id) {
set_task(1.0,"birdakika",0+task)
zaman--
set_hudmessage( 61, 214, 369, 0.3, 0.4, 0, 0.0, 1.5, 0.0, 0.0, 1 );
show_hudmessage( 0, "[ OTOMATIK ROKET ICIN GERI SAYIM ]^n %i ^n Saniye Sonra Roket Atilacaktir ", zaman );
if(zaman == 0) {
server_cmd("amx_show_activity 0");
server_cmd("amx_rocket @T");
server_cmd("amx_show_activity 2");
ColorChat(0, GREEN,"%s ^1[ ^3Geri Sayim Doldu ^1] Yolcu Yolunda Gerek, Iyi Yolculuklar Efenimm.");
remove_task(0+task)
}
else if(zaman == 3){
emit_sound(0, CHAN_AUTO, "osmuzik/321.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
}
Bu arada bu menüyü sana göstermek için yaptım menüyü jailbreak menusune gömdüğüm için onuda burda paylaşmadım bu yüzden anlatabilmek için menüyü böyle bir şekilde anlatmaya çalıştım umarım anlamışsındır.
[ OSMANLI IMP # F-TIPI JAILBREAK ]
[ İMAN AHLAK ADALET ]
[ Pit10 ]
-facebook-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
-diğer sosyal ağlarımız-
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Rocket"
#define VERSION "1.0"
#define AUTHOR "Pit10"
new bool:iptal;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /menu","menuac");
}
public menuac( id ) {
if (get_user_team(id) == 2 && is_user_alive(id)) {
new menu = menu_create("\y[ Gardiyanlara Ozel Roket Menusu ] ","Ctmenu")
menu_additem(menu, "Rocket At", "1" );
menu_additem(menu, "Sureyi Durdur", "2" );
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
return PLUGIN_HANDLED;
}
public Ctmenu(id,menu,item) {
if (item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_CONTINUE;
}
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)
if(get_user_team(id) == 2) {
switch(key) {
case 1: {
iptal = false;
birdakika(id)
}
case 2: {
iptal = true;
}
}
}
}
public birdakika(id) {
if(iptal) {
return PLUGIN_HANDLED
}
set_task(1.0,"birdakika",0+task)
zaman--
set_hudmessage( 61, 214, 369, 0.3, 0.4, 0, 0.0, 1.5, 0.0, 0.0, 1 );
show_hudmessage( 0, "[ OTOMATIK ROKET ICIN GERI SAYIM ]^n %i ^n Saniye Sonra Roket Atilacaktir ", zaman );
if(zaman == 0) {
server_cmd("amx_show_activity 0");
server_cmd("amx_rocket @T");
server_cmd("amx_show_activity 2");
ColorChat(0, GREEN,"%s ^1[ ^3Geri Sayim Doldu ^1] Yolcu Yolunda Gerek, Iyi Yolculuklar Efenimm.");
remove_task(0+task)
}
else if(zaman == 3){
emit_sound(0, CHAN_AUTO, "osmuzik/321.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
}
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/
Çözülmüş İsteklere taşındı.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/