#1

i made a cmd so if i type /agn no one can tp at me

PHP код:
if(strcmp(cmd"/agn"true) == 0)
                    {
                    if(
IsPlayerConnected(playerid))
                    {
                    if(
IsPlayerAdmin(playerid))
                    {
                    if(!
AdminTp[playerid])
                    {
                        
SendClientMessage(playeridCOLOR_ORANGE"   Nu se poate teleporta nimeni la tine !");
                        
AdminTp[playerid] = 1;
                    }
                    else if(
AdminTp[playerid])
                    {
                        
AdminTp[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_RED"   Acuma se poate teleporta admini la tine !");
                        
                    }
                    }
                    }
                    return 
1;
                    } 
PHP код:
if(AdminTp[giveplayerid] > 0)
                    {
                        
SendClientMessage(playeridCOLOR_RED"   Ne te poti teleporta la acest owner !");
                        return 
1;
                    } 
Reply


Messages In This Thread
/agn - by Akcent_Voltaj - 10.11.2012, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)