Script that admin can create events...
#10

its hard to tell but i think it should go like this

make veriable or what ever they are like

Код:
new bool:DmEventOn[MAX_PLAYERS];
make the command:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp(cmd, "/dmonl", true) == 0)
	{
     //here u should give if player is admin level = 1338,if its not there come error message ... in game ofc :D
    //and what code should do ofc here u post the fallowing veriable:
    DmEventOn = True;
    }
	return 1;
	}
	return 0;
}
and make another command for joining events ...

if (strcmp(cmd, "/joindm", true) == 0)
{
if(DmEventOn[playerid] == True)
{
//SetPlayerPos
//SetPlayerFacingAngle
// GivePlayerWeapons
//SetPlayerHealth
//SendClientMessage
// more and more
return 1;
}
if(DmEventOn[playerid] == false)
{
SendClientMessage(playerid,color,"The Dead Match Event Is Not Avaible ATM); // or something like this
return 1;
}
return 0 ;
}
it should be something like this this is example what i mean, codes are ofc not right, take this just for example i think if u know how to script this it should work
Reply


Messages In This Thread
Script that admin can create events... - by svorpyx - 18.01.2010, 16:42
Re: Script that admin can create events... - by Cry_Wolf - 18.01.2010, 16:43
Re: Script that admin can create events... - by lexidrifter - 18.01.2010, 16:45
Re: Script that admin can create events... - by svorpyx - 18.01.2010, 16:47
Re: Script that admin can create events... - by Cry_Wolf - 18.01.2010, 16:52
Re: Script that admin can create events... - by svorpyx - 18.01.2010, 17:00
Re: Script that admin can create events... - by svorpyx - 20.01.2010, 14:49
Re: Script that admin can create events... - by Miguel - 20.01.2010, 15:29
Re: Script that admin can create events... - by svorpyx - 20.01.2010, 16:07
Re: Script that admin can create events... - by Lajko1 - 20.01.2010, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)