User
Pass
2FA
 
 

Problema respawn
Go to page 1, 2, 3  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message4039
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 19-04-2017, 16:33:35 | Translate post to: ... (Click for more languages)

»Nume*: Plugin respawn
»Descriere problema*: Cand pornesc pluginul asta de respawn , merge tot ok . ! Dar daca vreau sa ma bag Spec. fie cu teammenu si cu amx_spec , ma baga in echipa adversa . si nici nu imi mai apare meniul de ales arme ! Problema este sigur de la acest plugin deoare ce l-am bagat si pe un server default si tot la fel !
»Poze/Sma:


Spoiler:

0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 19-04-2017, 17:02:01 | Translate post to: ... (Click for more languages)

Incearca mai intai
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "cerere"
#define VERSION "1.0"
#define AUTHOR "rusu updated by gore" 

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
   
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
   
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
   
    new player = cmd_target ( id, target, 11 );
   
    if( ! player )
        return PLUGIN_HANDLED;
   
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
   
    switch ( szArg[ 4 ] ) {
        case 't':
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
       
       
        case 'c':
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
       
        case 's':
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
       
    }
   
    return PLUGIN_CONTINUE;
}


Pune ; la amx_spec . Pluginu de sus ramane la fel.


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]



Last edited by GoreSpintecatoru. on 19-04-2017, 17:08:22; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 19-04-2017, 17:06:44 | Translate post to: ... (Click for more languages)

Nu ar avea de ce sa nu mearga acum.
Testeaza-l
Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 19-04-2017, 19:25:34 | Translate post to: ... (Click for more languages)

Legendary , acum merge sa ma bag spec . dar primesc respawn o singura data !
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 19-04-2017, 20:56:50 | Translate post to: ... (Click for more languages)

Explica mai mult , ca nu inteleg.

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 19-04-2017, 20:59:17 | Translate post to: ... (Click for more languages)

Deci . Acum merge sa ma bag spec. Adica daca scriu amx_spec "nume" , raman spec. Dar acum primesc respawn o singura data , adica .... daca ma omoara cineva , ma reinvie . si daca ma mai omoara odata , raman mort .!
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 19-04-2017, 21:04:16 | Translate post to: ... (Click for more languages)

Este recomandat sa nu te bagi peste pluginu de respawn , incearca metoda mea.

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 19-04-2017, 21:16:24 | Translate post to: ... (Click for more languages)

GoreSpintecatoru. wrote:
Este recomandat sa nu te bagi peste pluginu de respawn , incearca metoda mea.


Cum sa nu te bagi peste pluginul de respawn daca el nu este scriptat cum trebuie?
Pluginul de respawn ii detecteaza jucatorii care mor iar atunci ii reinviaza.
Eu am facut ca atunci cand jucatorii se sinucid (isi schimba echipa) sau cand sunt spec, sa nu se mai reinvieze.

Asta tau cu ce il ajuta?

Quote:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "cerere"
#define VERSION "1.0"
#define AUTHOR "rusu updated by gore"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /spec","spec");
register_clcmd("say_team /spec","spec");
register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

set_task( 100.0, "mesaj", 0, "", 0, "b" ); // Unde este activitatea pe care trebuie sa o indeplineasca acest task?
}

public spec(id)
{
cs_set_user_team(id,CS_TEAM_SPECTATOR);

if(is_user_alive(id))
user_silentkill(id);

return PLUGIN_CONTINUE;
}

public swap_team ( id, level, cid ) {
if( ! cmd_access ( id, level, cid, 2 ) )
return PLUGIN_HANDLED;

new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];

read_argv( 0, szArg, 9 );
read_argv( 1, target, 31 );

new player = cmd_target ( id, target, 11 );

if( ! player )
return PLUGIN_HANDLED;

get_user_name ( player, szPlayerName, 31 );
get_user_name ( id, szAdminName, 31 );

switch ( szArg[ 4 ] ) {
case 't':
{
user_silentkill ( player );
cs_set_user_team ( player, 1 );
show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName ); // Acest "show_activity" unde este definit?
}


case 'c':
{
user_silentkill ( player );
cs_set_user_team ( player, 2 );
show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
}

case 's':
{
user_silentkill ( player );
cs_set_user_team ( player, 3 );
show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
}

}

return PLUGIN_CONTINUE;
}


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 1
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 19-04-2017, 21:18:06 | Translate post to: ... (Click for more languages)

Pai dai tu fix-u pana sa te bagi in pluginu meu , ala i l-am dat de test sa vad daca ii merge ca sa il bag in celalalt plugin.Te rog sa nu te mai bagi peste mine.

Ce i-am dat eu e doar sters din alt plugin , ca sa vad cum reactioneaza pe serverul lui cu pluginu ala. ( il ajuta cu /spec si functioneaza normal la respawn)


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 19-04-2017, 21:27:51 | Translate post to: ... (Click for more languages)

GoreSpintecatoru. wrote:
Pai dai tu fix-u pana sa te bagi in pluginu meu , ala i l-am dat de test sa vad daca ii merge ca sa il bag in celalalt plugin.Te rog sa nu te mai bagi peste mine.

Ce i-am dat eu e doar sters din alt plugin , ca sa vad cum reactioneaza pe serverul lui cu pluginu ala. ( il ajuta cu /spec si functioneaza normal la respawn)


GoreSpintecatoru. wrote:
Spoiler:

Tu cum te-ai bagat peste ce am lucrat eu?
Daca te pricepi te las numa pe tine, da' vad ca spui si faci numai tampenii.

GoreSpintecatoru. wrote:
ala i l-am dat de test sa vad daca ii merge ca sa il bag in celalalt plugin.
Ce i-am dat eu e doar sters din alt plugin , ca sa vad cum reactioneaza pe serverul lui cu pluginu ala. ( il ajuta cu /spec si functioneaza normal la respawn)

Unde sunt ceilalti scripteri sa se rada de tine -
Pluginul ce i l-ai dat tu este = cu 0.
"Ce i-am dat eu e doar sters din alt plugin" Hai c-o dadusi cu coada-n balta.
"il ajuta cu /spec si functioneaza normal la respawn" asta inca nu reusesc s-o pricep
Ala tau nici macar nu functioneaza, d-apai sa faca ce are el nevoie.
Lui ii trebuie sa ii blocheze respawn-ul cand se muta la spec tu ii dai un plugin care sa-l mute la spec =]]
Inteligent.


Be the one, not anyone.
Currently working on Zombie Legendary 8.1




Last edited by ZPLegendary on 20-04-2017, 13:18:11; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 19-04-2017, 21:31:01 | Translate post to: ... (Click for more languages)

Pai de ce nu-l rezolvi tu?

Vezi de treaba ta , lasa-ma pe mine sa fac ce stiu.

Apropo , plugin-ul i l-am dat primu , inainte sa postezi tu aia . Imi pare rau - Atat timp cat am rezolvat oamenii , te rog sa nu te mai abati.


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]



Last edited by GoreSpintecatoru. on 19-04-2017, 21:34:35; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 19-04-2017, 21:34:21 | Translate post to: ... (Click for more languages)

Pai, ori il rezolv eu, ori imi vad de treaba si te las pe tine?
Nu stiu cine ti-a dat gradu' pe-aici, da' prost te-o nimerit.

Eu as sta p-aici toata ziua sa-i ajut pe oameni, da' am si eu destu de lucru la ale mele.



 
Staff message (Wipe):
 
Incearca sa te abtii de la atacuri si limbaj colorat la adresa altor useri.



Be the one, not anyone.
Currently working on Zombie Legendary 8.1


1 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 20-04-2017, 09:47:55 | Translate post to: ... (Click for more languages)

Vezi acum

Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 20-04-2017, 12:54:54 | Translate post to: ... (Click for more languages)

eroarea asta la compilare

Spoiler:

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 20-04-2017, 13:17:27 | Translate post to: ... (Click for more languages)

Vezi acum

Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by GoreSpintecatoru., 25 April 2017 08:09



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page 1, 2, 3  Next    


The time now is 29-03-2024, 14:58:45
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x