Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new bool:check = false, count = 0;
- stock doCheck()
- {
- while(check) count++;
- count = 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/check", cmdtext, true))
- {
- check = true;
- doCheck();
- return 1;
- }
- else if(!strcmp("/nocheck", cmdtext, true))
- {
- check = false;
- return 1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment