AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   model stuff (https://forums.alliedmods.net/showthread.php?t=24810)

wonsae 03-02-2006 20:20

model stuff
 
I would I make it so when the player connects the models changes to a certain model and can't change models?

btw this is for the specialists

EDIT nvm I got the connecting stuff but I don't know how to make it so they don't change models

wonsae 03-02-2006 21:11

Code:
public client_connect(id) {     engclient_cmd(id,"model collector-civ") } public client_infochanged(id){     get_user_info(id,"model","newmodel")     set_user_info(id,"model collector-civ","newmodel") }

I was wondering if this would work

Kraugh 03-02-2006 21:23

engclient_cmd takes a function as one parameter and its arguments as a second. so you would use this:

Code:
engclient_cmd(id,"model","modelname");

also, i would use engclient_cmd or client_cmd instead of set_user_info (it hasn't worked for me).

wonsae 03-02-2006 21:33

Thank you!


All times are GMT -4. The time now is 20:25.

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