SA-MP Forums Archive
Problam with the defender ... HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problam with the defender ... HELP (/showthread.php?tid=324152)



Problam with the defender ... HELP - tal_peretz - 08.03.2012

I did defender to my mode ..

OnGameModeInit

PHP код:
    new d,m,ygetdate(y,m,d);
    if(( (
== && 9) || || ) ||
dini_Int("Server.ini","On") == 1
 

    {
            
SendRconCommand("exit");
    } 
OnPlayerConnect -

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;

It's work BUT - sometimes it's happend alone !! And I don't know why !!


Re: Problam with the defender ... HELP - tal_peretz - 08.03.2012

jump help


Re: Problam with the defender ... HELP - tal_peretz - 08.03.2012

jump