hideStore()

From Hack Wars Wiki

Jump to: navigation, search


Function information for hideStore()
Function hideStore()
API HTTP
Cost $1,500
Level 40
CPU Usage 6
Description Hides the store from the current visitor.


Example

The following code will search through a list of IPs in a file. If it finds the visitor's IP in the file, it will block them from the store.

string banfile="banned.txt";
string visitor=getVisitorIP();
for(int b=0;b<countLines(banfile);b++) {
	if (readLine(banfile, b)==visitor) { 
		hideStore();
		break;
	}
}


For more information, see getVisitorIP(), strlen(), readLine().

Personal tools