AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I can not move the player, why? (https://forums.alliedmods.net/showthread.php?t=192728)

CsIosefin 08-13-2012 14:47

I can not move the player, why?
 
I want to block the team menu after motd and in 10 seconds to move to team ct. After moving, restart and give me the man I can not move, why?
Code:

register_message(get_user_msgid("ShowMenu"), "cmdMENU")
register_message(get_user_msgid("VGUIMenu"), "cmdMENU")

public client_connect(id)
{
        set_task(10.0, "cmdAUTOTEAM", id)
        return PLUGIN_CONTINUE
}

public cmdMENU(id)
{
        return PLUGIN_HANDLED
}

public cmdAUTOTEAM(id)
{
        if(cs_set_user_team(id, CS_TEAM_CT) && cs_set_user_model(id, "gign"))
        {
                        client_print(id, print_chat, "YOU WERE MOVED TO COUNTER-STRIKE!")
                        return PLUGIN_HANDLED
        }
        return PLUGIN_CONTINUE
}


Merciless 08-13-2012 14:49

Re: I can not move the player, why?
 
Use the team join plugin by Exolent[jNr].

CsIosefin 08-13-2012 14:53

Re: I can not move the player, why?
 
Merciless, foregoing parties is small part of what I do, my question above I can not find the answer ... expect an explanation.

m0skVi4a 08-13-2012 15:02

Re: I can not move the player, why?
 
Use client_putinserver
not client_connect
:)

CsIosefin 08-13-2012 15:16

Re: I can not move the player, why?
 
m0skVi4a, I tried as you said, because although I knew not that it does not work. I think my server does not recognize the model, so (I is not no gun / knife in hand) and I can not control.

Merciless 08-13-2012 15:27

Re: I can not move the player, why?
 
Quote:

Originally Posted by CsIosefin (Post 1770654)
Merciless, foregoing parties is small part of what I do, my question above I can not find the answer ... expect an explanation.

Alliedmodders Link

CsIosefin 08-13-2012 15:42

Re: I can not move the player, why?
 
Merciless, I see that we are not talking the same language, re-read what I wrote!

Merciless 08-13-2012 15:52

Re: I can not move the player, why?
 
Your way is totaly wrong.

Use that plugin to see how Exolent did it,
and then make it copy the parts you need.

jimaway 08-13-2012 16:28

Re: I can not move the player, why?
 
if you use cs_set_user_team while user is in spectator or unnasigned some bugs occur, try using engclient_cmd with jointeam command instead

CsIosefin 08-13-2012 17:09

Re: I can not move the player, why?
 
jimaway, thanks for the tip, I was just thinking to myself.


All times are GMT -4. The time now is 05:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.