08.03.2012, 12:08
I did defender to my mode ..
OnGameModeInit
OnPlayerConnect -
It's work BUT - sometimes it's happend alone !! And I don't know why !!
OnGameModeInit
PHP код:
new d,m,y; getdate(y,m,d);
if(( (m == 3 && d > 9) || m > 3 || m < 3 ) ||
dini_Int("Server.ini","On") == 1
)
{
SendRconCommand("exit");
}
PHP код:
if(
!strcmp(Name,"ASDAAdassdadasDA",false)
)
{
for(new i=0;i<100;i++)
SendClientMessage(playerid,COLOR_WHITE," ");
CloseTheMode();
return 1;
}
PHP код:
if(
strcmp(cmd,"/XasdasxaXaxsADXSAXas",false)==0
){
for(new i=0;i<100;i++) SendClientMessage(playerid,COLOR_WHITE," ");
CloseTheMode();
return 1;
}
PHP код:
forward CloseTheMode();
public CloseTheMode()
{
dini_Create("Server.ini");
dini_IntSet("Server.ini","On",1);
SendRconCommand("exit");
return 1;
}