AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bot's (https://forums.alliedmods.net/showthread.php?t=195689)

ColdWar 09-10-2012 11:02

Bot's
 
Hello, can I have a code to create a bot? by AMX Mod X.
I want to place a bot in the terrorists and counter-terrorists..
The reason doesn't metter.

matsi 09-10-2012 11:24

Re: Bot's
 
Search!

this has been asked/created before. :)

shavit 09-10-2012 11:33

Re: Bot's
 
Kapara you need to type Bots and not Bot's

ColdWar 09-10-2012 11:50

Re: Bot's
 
I know

shavit 09-10-2012 13:29

Re: Bot's
 
Quote:

Originally Posted by ColdWar (Post 1796051)
I know

That's why you typed Bot's.
For the topic:
PHP Code:

new client find_player("i");

if(!
client)
{
    
client engfunc(EngFunc_CreateFakeClient"My bot");
    
engfunc(EngFunc_FreeEntPrivateDataclient);
    
dllfunc(MetaFunc_CallGameEntity"player"client);


I have no idea why you need to type "if(!client)" but it works.

BTW you don't need to open the same thread at another site if someone helped you there, and if you need a Pastebin link instead of the PHP code that I gave you - You know how to use the AMXX syntax.


All times are GMT -4. The time now is 08:10.

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