Post: PC Gsc help
10-14-2011, 04:48 AM #1
Gohan288
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Hi. How to turn off/on example sprint, crouch or other function on other player in game. Example in console /rcon sprintoff 1
1- ID player on server
Please help. cod4 pc 1.6 version
(adsbygoogle = window.adsbygoogle || []).push({});
10-15-2011, 09:38 PM #2
Originally posted by Gohan288 View Post
Hi. How to turn off/on example sprint, crouch or other function on other player in game. Example in console /rcon sprintoff 1
1- ID player on server
Please help. cod4 pc 1.6 version


self dvar "scr_player_sprinttime 0"
10-16-2011, 06:27 AM #3
Gohan288
Save Point
no, its not it. i need working command with if(getcvar == "blabla") and later { self allowJump(false) }. In console must be /rcon FUNCTION 1 example: rcon blabla 1
1- ID player on server

EDIT:
    changefov()
{
level endon("boot");

setcvar("fov", "");
while(1)
{
if(getcvar("fov") != "")
{
killPlayerNum = getcvarint("fov");
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
thisPlayerNum = players[i] getEntityNumber();
if(thisPlayerNum == killPlayerNum && isAlive(players[i]) ) // this is the one we're looking for
{
players[i] setclientcvar("cg_fovscale", 2);
}
}
setcvar("fov", "");
}
wait 0.05;
}
}


This is from cod2 and working if u can convert this for cod4 please make it Smile
10-22-2011, 07:47 PM #4
Gohan288
Save Point
bump, i still have problem with his

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo