Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnGameModeInit()
- {
- new GetRconPassword[20];
- GetServerVarAsString("rcon_password", GetRconPassword, sizeof (GetRconPassword));
- if (!strlen(GetRconPassword) || strcmp(GetRconPassword, "123456"))
- {
- print("You can not start the server.");
- SendRconCommand("exit");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment