ESF Console commands?

AMXX Coder (:
✔️ HL Verified
Discord Member
Joined
Dec 31, 2008
Messages
55
Best answers
0
Hey guys, i need that command name, when you choose a character in console, like "buu", "cell", "goku" etc. But i can't figure out how is named that command for "random characters"
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Code:
randompc
 
AMXX Coder (:
✔️ HL Verified
Discord Member
Joined
Dec 31, 2008
Messages
55
Best answers
0
thanks, and to not open a new thread, how to detect when menu "class change" is opened after i join the server, i want to block it
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Code:
public plugin_init()
	register_message(get_user_msgid("VGUIMenu"), "fnVGUIMenu");

public fnVGUIMenu()
	return get_msg_arg_int(1) == 3 ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
 
AMXX Coder (:
✔️ HL Verified
Discord Member
Joined
Dec 31, 2008
Messages
55
Best answers
0
okay, thanks, one last question... how to damn respawn a player in esf, because i can't figure it out and if i spawn it doesnt have ability to teleport etc
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Well, all my previous attempts have failed on that. But I may look for a way to do that.

EDIT: Has small delay. (NO, it doesn't work without delay)

Code:
#include <engine>

stock fnRespawn(iClient)
{
	entity_set_int(iClient, EV_INT_deadflag, DEAD_RESPAWNABLE);
	set_task(0.1, "taskRespawn", iClient);
}

public taskRespawn(iClient)
	DispatchSpawn(iClient);

You may want to add additional checks if player is connected/not alive in taskRespawn().
 
Last edited:

Users who are viewing this thread

Top Bottom