View Single Post
Author Message
Doggg
Member
Join Date: Jun 2018
Old 07-09-2019 , 11:37   how can you scan a variable and then apply it?
Reply With Quote #1

Hey dudes, I am trying to write a code that change the sv cheats as i wish.
i mean like, i am going to write /cheats 1 and sv_cheats will change to 1;
so i try to scan from the user this info and then apply it into the code.
what is the scanning function called? how to use it? i mean in C you just scanf("%+letter",&variable)
also, i want this to print a fitting message to the client,
if the variable = 1 to print in GREEN svcheats is *on*
if the variable = 1 to print in RED svcheats is *off*
i have 0 idea how i can scan from the user chat and apply it. any help?

Last edited by Doggg; 07-09-2019 at 11:38.
Doggg is offline