Raised This Month: $51 Target: $400
 12% 

A little scripting help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ScorpFire
Member
Join Date: Sep 2011
Old 07-01-2012 , 09:05   A little scripting help
Reply With Quote #1

Hi,

Just wondering is there any API that i can use to check which zombie/human class a player is?


Thanks in advance
ScorpFire is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 07-01-2012 , 11:43   Re: A little scripting help
Reply With Quote #2

maybe u can check by get model info
pillepallus is offline
TheAvengers2
BANNED
Join Date: Jul 2011
Old 07-02-2012 , 08:42   Re: A little scripting help
Reply With Quote #3

Not through any ZR natives/forwards. You'll probably have to check via GetClientModel. I have no idea why the other guy linked you to RemoveEdict.

Anyway, these are the only ZR natives/forwards I saw:
Quote:
Originally Posted by infect.api.inc
// Natives
CreateNative("ZR_IsClientZombie", APIIsClientZombie);
CreateNative("ZR_IsClientHuman", APIIsClientHuman);
CreateNative("ZR_InfectClient", APIInfectClient);
CreateNative("ZR_HumanClient", APIHumanClient);

// Forwards
g_hAPIFwdOnClientInfect = CreateGlobalForward("ZR_OnClientInfect", ET_Hook, Param_CellByRef, Param_CellByRef, Param_CellByRef, Param_CellByRef, Param_CellByRef);
g_hAPIFwdOnClientInfected = CreateGlobalForward("ZR_OnClientInfected", ET_Ignore, Param_Cell, Param_Cell, Param_Cell, Param_Cell, Param_Cell);
g_hAPIFwdOnClientHuman = CreateGlobalForward("ZR_OnClientHuman", ET_Hook, Param_CellByRef, Param_CellByRef, Param_CellByRef);
g_hAPIFwdOnClientHumanPost = CreateGlobalForward("ZR_OnClientHumanPost", ET_Ignore, Param_Cell, Param_Cell, Param_Cell);
Quote:
Originally Posted by respawn.api.inc
// Natives
CreateNative("ZR_RespawnClient", APIRespawnClient);
CreateNative("ZR_SetKilledByWorld", APISetKilledByWorld);
CreateNative("ZR_GetKilledByWorld", APIGetKilledByWorld);

// Forwards
g_hAPIFwdOnClientRespawn = CreateGlobalForward("ZR_OnClientRespawn", ET_Hook, Param_CellByRef, Param_CellByRef);
g_hAPIFwdOnClientRespawned = CreateGlobalForward("ZR_OnClientRespawned", ET_Ignore, Param_Cell, Param_Cell);

Last edited by TheAvengers2; 07-02-2012 at 08:51.
TheAvengers2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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