Skip to content

Example

oukibt edited this page Jun 30, 2021 · 1 revision
#include <a_samp>
#include <Pawn.Query>

main() {}

public OnGameModeInit()
{
	for (new i = 0; i < Query_HookType; i++)
	{
		EnableHookQuery(Query_HookType: i, true);
		// Hook all types
	}

	new Players[][Query_Players] = {

		{ "Dan", 15 },
		{ "Mike", 25 },
		{ "Naruto", 50 },
		{ "Sakura", 200 }
	};

	SetServerPlayers(Players); // Set a players

	//////////////////////////////////////////

	new Rules[][Query_Rules] = {

		{ "Rule 1", "Don't cheating" },
		{ "Rule 2", "Don't scam" },
		{ "Rule 3..?", "No, it enough" }
	};

	SetServerRules(Rules); // Set a rules

	//////////////////////////////////////////

	SetServerInformation(true, 228, "Shippuden", "Just gamemode", "Doesn't matter");

	//////////////////////////////////////////

	SendPing(false); // Don't send a ping

	return 1;
}

Result:

Result

Clone this wiki locally