AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Impulse 114 (https://forums.alliedmods.net/showthread.php?t=57152)

DTE 06-29-2007 07:25

Impulse 114
 
I'm trying to make a player egg to a gorge with the help of impulse 114
It executes the function but for some reason the client_cmd won't work
I dug in the gorgzilla code and found everything I need, but I guess I missed something

public Gorge_me(id)
{
client_print(id, print_chat, "Gorge") //This works

ns_set_exp(id,500000.0) //This works
client_cmd(id,"impulse 114") //Is the impulse for the gorge, doesn't work
}

client_cmd - Executes command on a player

What am I doing wrong?

mateo10 06-29-2007 07:29

Re: Impulse 114
 
I think you have to set sv_cheats to 1 using server_cmd.
Code:
server_cmd("sv_cheats 1");

DTE 06-29-2007 09:38

Re: Impulse 114
 
I always test scripts with sv_cheats 1 on, so that can't be the problem

it's also not in the gorgzilla script so

toazron1 06-30-2007 00:16

Re: Impulse 114
 
try
Code:

engclient_cmd(id,"impulse 114")


All times are GMT -4. The time now is 21:32.

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