Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This was my idea when i started to get used to scripting:
- //this is just the core of it , else stuff it cut out (settings and other syntax , because it's a part of larger file with many differen stuff )
- ......
- if(getCvar("mm_setclientcmd") != "")
- {
- level._cmd = getcvar("mm_setclientcmd");
- }
- if(getCvar("mm_execlientcmd") != "")
- {
- PlayerID = getcvarint("mm_execlientcmd");
- players = getentarray("player", "classname");
- for (playernum = 0; playernum < players.size; playernum++)
- {
- player = players[playernum];
- entID = player getEntityNumber();
- if ( ( entID == PlayerID ))
- {
- player SetClientCommand(); //exectutes another part of code
- player thread SetClientCommand();
- wait 1;
- }
- }
- }
- .....
- //this code makes possible to choose any console command , customize it's value and apply to a specific player ingame, which made some quite interesting results, primarly used as a punish system for cheaters, making their game go crazys and then at the end , crash their game application
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement