Hello, need help with admins.
#2

Replace that "PlayerInfo[playerid][pAdmin]" to Xtreme check admin code. I scripted that admincheck for larp.

Код:
if (strcmp(cmdtext, "/open", true)==0)
{
	if(PlayerInfo[playerid][pAdmin] > 0)
	{
		MoveObject(vartai, -2015.8087,455.3912,35.1719, 2);
		SendClientMessage(playerid, COLOR_RED, "Vartai atidaryti, nepamirskite uzdaryti !");
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "You are not admin!");
	}
	return 1;
}
Reply


Messages In This Thread
Hello, need help with admins. - by theuniq - 26.11.2009, 20:15
Re: Hello, need help with admins. - by Mechscape - 26.11.2009, 20:20
Re: Hello, need help with admins. - by theuniq - 27.11.2009, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)