Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Nubo
- Fost moderator
- Posts: 2734
- Joined: 11 Jul 2012, 18:45
- Detinator Steam: Da
- CS Status: [əˈnɒn.ɪ.məs]
- Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
- Has thanked: 8 times
- Been thanked: 27 times
24 May 2013, 16:53
Incearca asa.
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 20 || ore < 12){
nu verifica accesul
}else{
verifica accesul
}
Necesita <core>
Add:
Defapt, mai logic ar fi asa:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 12 && ore < 20){
verifica accesul
}
Cand nu merge acest forum sunt online aici:
- * Skype: nubo_cs
* Y!M ID: nubo_cs
-
#Vali
- Fost moderator
- Posts: 2611
- Joined: 24 Jan 2012, 11:00
- Detinator Steam: Da
- SteamID: id/spryt3
- Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
- Location: root
- Has thanked: 81 times
- Been thanked: 144 times
-
Contact:
24 May 2013, 16:56
De ce nu ii zici celui ce ti la creat sa adauge acest mic detaliu ..
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
24 May 2013, 19:56
Nubo wrote:Incearca asa.
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 20 || ore < 12){
nu verifica accesul
}else{
verifica accesul
}
Necesita <core>
Add:
Defapt, mai logic ar fi asa:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 12 && ore < 20){
verifica accesul
}
Ce <core> visezi?
Pui rahaturile astea la conectarea jucatorului, mai exact putinserver si ii dai sa citeasca flagurile, daca are Z si e freevip sa-i puna ce flag are vipul tau. Usor nu?
PS: Nu merge partea a 2 a lui, foloseste prima aia (nelogica).
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
#Vali
- Fost moderator
- Posts: 2611
- Joined: 24 Jan 2012, 11:00
- Detinator Steam: Da
- SteamID: id/spryt3
- Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
- Location: root
- Has thanked: 81 times
- Been thanked: 144 times
-
Contact:
24 May 2013, 20:01
cyby wrote:Nubo wrote:Incearca asa.
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 20 || ore < 12){
nu verifica accesul
}else{
verifica accesul
}
Necesita <core>
Add:
Defapt, mai logic ar fi asa:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 12 && ore < 20){
verifica accesul
}
Ce <core> visezi?
Pui rahaturile astea la conectarea jucatorului, mai exact putinserver si ii dai sa citeasca flagurile, daca are Z si e freevip sa-i puna ce flag are vipul tau. Usor nu?
PS: Nu merge partea a 2 a lui, foloseste prima aia (nelogica).
deci care e buna?
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
24 May 2013, 20:03
ASTA:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 20 || ore < 12){
nu verifica accesul
}else{
verifica accesul
}
Pentru ca nu are cum sa fie asta:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 12 && ore < 20){
verifica accesul
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
FlyingSnow
- Membru, skill +2
- Posts: 825
- Joined: 01 Oct 2012, 02:22
- Detinator Steam: Da
- Detinator server CS: Dap.
- SteamID: Nu-i public.
- Has thanked: 26 times
- Been thanked: 52 times
-
Contact:
24 May 2013, 20:07
Degeaba, pluginul e complicat.
menu_additem ( menu, "\y225 HP\w &\y 225 AP", "1", VIP_ACCESS );
Verifica accesu :-" ..
-
#Vali
- Fost moderator
- Posts: 2611
- Joined: 24 Jan 2012, 11:00
- Detinator Steam: Da
- SteamID: id/spryt3
- Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
- Location: root
- Has thanked: 81 times
- Been thanked: 144 times
-
Contact:
24 May 2013, 20:07
cyby wrote:ASTA:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 20 || ore < 12){
nu verifica accesul
}else{
verifica accesul
}
Pentru ca nu are cum sa fie asta:
Code: Select all
new ore,minute,secunde;
time(ore,minute,secunde);
if(ore >= 12 && ore < 20){
verifica accesul
}
si carei instructiunea care sa verifice accesul sau sa nul verifice?
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
24 May 2013, 20:12
Code: Select all
#include <amxmodx>
public plugin_init()
{
register_plugin("Dam la saraci vip", "1.0", "cyby")
}
public client_putinserver(id)
{
new o, m, s;
time(o, m, s)
if(o >= 20 || o < 12)
{
if(~get_user_flags(id) & ADMIN_LEVEL_H)
{
set_user_flags(id, read_flags("t"))
set_task(3.0, "mesaj", id)
}
}
}
public mesaj(id)
{
client_print(id, print_chat, "Ai primit vip ca esti special pentru noi si alte rahaturi")
}
Last edited by
cyby on 24 May 2013, 20:15, edited 1 time in total.
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
FlyingSnow
- Membru, skill +2
- Posts: 825
- Joined: 01 Oct 2012, 02:22
- Detinator Steam: Da
- Detinator server CS: Dap.
- SteamID: Nu-i public.
- Has thanked: 26 times
- Been thanked: 52 times
-
Contact:
24 May 2013, 20:14
Uita-te la pm :) am pus o sursa..:)
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
24 May 2013, 20:17
Si ce? Pentru sistemul ala de rahat de vip se poate face extern asta si super simplu, ce ti-am dat eu merge.
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
FlyingSnow
- Membru, skill +2
- Posts: 825
- Joined: 01 Oct 2012, 02:22
- Detinator Steam: Da
- Detinator server CS: Dap.
- SteamID: Nu-i public.
- Has thanked: 26 times
- Been thanked: 52 times
-
Contact:
24 May 2013, 20:33
Pacat ca nu merge.. eu vreau sa dea vip la playerii cu flagul "z"
Adica cei fara grad...
ala ce mi-ai dat tu nu e ok.. :| l-am testat si.. nimic. Nici mesaje nici nimic :)
-
Nubo
- Fost moderator
- Posts: 2734
- Joined: 11 Jul 2012, 18:45
- Detinator Steam: Da
- CS Status: [əˈnɒn.ɪ.məs]
- Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
- Has thanked: 8 times
- Been thanked: 27 times
24 May 2013, 20:35
cyby, nu lasi limbajul asta de taran si nu termini sa te crezi superior??
Cand am scris propunerea aia cu time(), nu stiam ce plugin are, apoi am discutat pe PM si am aflat.
Add:
Code: Select all
if(~get_user_flags(id) & ADMIN_LEVEL_H)
>
Code: Select all
if(!get_user_flags(id) & ADMIN_LEVEL_H)
Last edited by
Nubo on 24 May 2013, 20:39, edited 1 time in total.
Cand nu merge acest forum sunt online aici:
- * Skype: nubo_cs
* Y!M ID: nubo_cs
-
Users browsing this forum: No registered users and 56 guests