20.01.2010, 17:31
its hard to tell but i think it should go like this
make veriable or what ever they are like
make the command:
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
make veriable or what ever they are like
Код:
new bool:DmEventOn[MAX_PLAYERS];
Код:
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;
}
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

