AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Joinclass help (https://forums.alliedmods.net/showthread.php?t=283348)

EFFx 05-31-2016 18:03

Joinclass help
 
How can i pick-up the class name?
I have a hook when X player choose X class, but idk how do pick-up this name.

PHP Code:

public PugMenuJoinClass(id)
{
 if(
get_pdata_int(id,205) == 3)
 {
  new 
sCommand[11],sArg[32];
  
read_argv(0,sCommand,charsmax(sCommand));
  
read_argv(1,sArg,charsmax(sArg));
  
  
engclient_cmd(id,sCommand,sArg);
  
ExecuteHam(Ham_Player_PreThink,id);
 }


Can you guys help?

Napoleon_be 06-01-2016 03:45

Re: Joinclass help
 
What do you exactly mean by picking up the class name? What is it exactly that you wanna do?

HamletEagle 06-01-2016 13:42

Re: Joinclass help
 
https://forums.alliedmods.net/showthread.php?p=2407609

EFFx 06-01-2016 17:05

Re: Joinclass help
 
Quote:

Originally Posted by HamletEagle (Post 2423876)

Thanks, you're fcking a-w-e-s-o-m-e


All times are GMT -4. The time now is 18:33.

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