It is currently 18 Nov 2018 01:09



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 8 posts ] 
 [Rezolvat!] plugin ghiceste nr 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut,nu stiu daca este un model gen Tip plugin..Info,nu am gasit. Voi explica pe scurt ce ma intereseaza.
Cu o comanda gen amx_numar "5" setez nr 5.
Apoi primul care scrie pe chat 5 castiga.. Apare un mesaj pe chat x a castigat..


30 Oct 2018 21:45
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1386
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new numar

public plugin_init()
{
register_clcmd("amx_numar","Public",ADMIN_CVAR,"amx_numar <numar>")

register_clcmd("say","Say")
register_clcmd("say_team","Say")
}

public Public(id,level,cid)
{
if(!cmd_access(id,level,cid,1)) return console_print(id,"[AMXX]: Nu ai acces!")

new arg1[32]
read_argv(1,arg1,charsmax(arg1))
remove_quotes(arg1)

if(equali(arg1,"")||!str_to_num(arg1)) return console_print(id,"[AMXX]: Format incorect!")

numar=str_to_num(arg1)

return PLUGIN_HANDLED
}

public Say(id)
{
new args[195],name[32]
read_args(args,charsmax(args))

if(!args[0]) return PLUGIN_CONTINUE

remove_quotes(args[0])
get_user_name(id,name,charsmax(name))

if(str_to_num(args)==numar&&numar) client_print(0,print_chat,"[AMXX]: Se pare ca %s tocmai a ghicit numarul norocos.",name)

return PLUGIN_CONTINUE
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


30 Oct 2018 22:57
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
e bun. Nu am cuvinte sa-ti multumesc. Il mai colorez eu si e perfect.


31 Oct 2018 00:09
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
e bun. Nu am cuvinte sa-ti multumesc. Il mai colorez eu si e perfect.
Dar o sg problema. Dupa ce ghiceste nr sa se inchia numaru,
Adica daca scriu eu nr odata dupa mine mai scriu inca 10..sau macar sa pot opri eu ca ramane activ..Asa dupa 10ore cine scrie numaru apare pe chat


31 Oct 2018 00:12
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1386
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new numar,bool:blocked

public plugin_init()
{
register_clcmd("amx_numar","Public",ADMIN_CVAR,"amx_numar <numar>")

register_clcmd("say","Say")
register_clcmd("say_team","Say")
}

public Public(id,level,cid)
{
if(!cmd_access(id,level,cid,1)) return console_print(id,"[AMXX]: Nu ai acces!")

new arg1[32]
read_argv(1,arg1,charsmax(arg1))
remove_quotes(arg1)

if(equali(arg1,"")||!str_to_num(arg1)) return console_print(id,"[AMXX]: Format incorect!")

numar=str_to_num(arg1)

if(blocked) blocked=false

return PLUGIN_HANDLED
}

public Say(id)
{
new args[195],name[32]
read_args(args,charsmax(args))

if(!args[0]) return PLUGIN_CONTINUE

remove_quotes(args[0])
get_user_name(id,name,charsmax(name))

if(str_to_num(args)==numar&&numar&&!blocked)
{
client_print(0,print_chat,"[AMXX]: Se pare ca %s tocmai a ghicit numarul norocos.",name)

blocked=true
}

return PLUGIN_CONTINUE
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


31 Oct 2018 00:21
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Daca ai putea doar sa faci textul de la mesaj coloarat iar castigatorul cu verde. Eu chiar nu stiu..am incercat dar. Apoi se poate da t/c
Multumesc


31 Oct 2018 00:29
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 26 Jan 2016 11:24
Posts: 1590
Location: Chişinău, Republic Of Moldova
Detinator Steam: Da
CS Status: segmentation fault
SteamID: /ID/gypower
Reputatie: Moderator ajutator
Membru Club eXtreamCS (3 luni)
Nume anterior: Jah Khalib
Fond eXtream: 0
Marcat ca Rezolvat!

_________________
Tranzactii efectuate cu succes.
| Afiseaza codul
https://www.extreamcs.com/forum/anunturi/vand-cont-rockstar-gta-15euro-paypal-t349363.html
anunturi/vand-cont-rockstar-gta-euro-paypal-t349373.html
anunturi/cumpar-tema-ipb-t349335.html
anunturi/recomandare-utilizatori-pentru-tranzactii-t323814-60.html
anunturi/recomandare-utilizatori-pentru-tranzactii-t323814-72.html
post2692853.html#p2692853
anunturi/addons-furien-classic-cyby-t348802.html

Image
| Afiseaza codul
Image


31 Oct 2018 12:44
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1386
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
COLOR | Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new numar,bool:blocked

public plugin_init()
{
register_clcmd("amx_numar","Public",ADMIN_CVAR,"amx_numar <numar>")

register_clcmd("say","Say")
register_clcmd("say_team","Say")
}

public Public(id,level,cid)
{
if(!cmd_access(id,level,cid,1)) return console_print(id,"[AMXX]: Nu ai acces!")

new arg1[32]
read_argv(1,arg1,charsmax(arg1))
remove_quotes(arg1)

if(equali(arg1,"")||!str_to_num(arg1)) return console_print(id,"[AMXX]: Format incorect!")

numar=str_to_num(arg1)

if(blocked) blocked=false

return PLUGIN_HANDLED
}

public Say(id)
{
new args[195],name[32]
read_args(args,charsmax(args))

if(!args[0]) return PLUGIN_CONTINUE

remove_quotes(args[0])
get_user_name(id,name,charsmax(name))

if(str_to_num(args)==numar&&numar&&!blocked)
{
xCoLoR(0,"!e[AMXX]: Se pare ca!v %s!e tocmai a ghicit numarul norocos.",name)

blocked=true
}

return PLUGIN_CONTINUE
}

stock xCoLoR(id, String[], any:...)
{
static szMesage[192];
vformat(szMesage, charsmax(szMesage), String, 3);

replace_all(szMesage, charsmax(szMesage), "!n", "^1");
replace_all(szMesage, charsmax(szMesage), "!e", "^3");
replace_all(szMesage, charsmax(szMesage), "!v", "^4");
replace_all(szMesage, charsmax(szMesage), "!e2", "^0");

static g_msg_SayText = 0;
if(!g_msg_SayText) g_msg_SayText = get_user_msgid("SayText");

new Players[32], iNum = 1, i;

if(id) Players[0] = id;
else get_players(Players, iNum, "ch");

for(--iNum; iNum >= 0; iNum--)
{
i = Players[iNum];

message_begin(MSG_ONE_UNRELIABLE, g_msg_SayText, _, i);
write_byte(i);
write_string(szMesage);
message_end();
}
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


05 Nov 2018 12:14
Profile multumesc ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: Baidu [Spider], riderel and 74 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group