/admins command & money saving
#1

Hi, i m looking for FULLY FUNCTIONALLY /admins command!!! I have searched every topic at the forum and none of them worked! pls help -_-

+

Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
Reply
#2

Something like this:

pawn Код:
if ( !strcmp ( cmd , "/admins" , true ) )
{
    new strtmp[24];
    SendClientMessage ( playerid , 0xAA3333AA , "Admins:" );
    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
      if ( IsPlayerAdmin ( i ) )
      {
        GetPlayerName ( i , strtmp , sizeof ( strtmp ) );
        SendClientMessage ( playerid , 0xAA3333AA , strtmp );
        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by [LDT
LuxurY ]
Something like this:

pawn Код:
if ( !strcmp ( cmd , "/admins" , true ) )
{
    new strtmp[24];
    SendClientMessage ( playerid , 0xAA3333AA , "Admins:" );
    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
      if ( IsPlayerAdmin ( i ) )
      {
        GetPlayerName ( i , strtmp , sizeof ( strtmp ) );
        SendClientMessage ( playerid , 0xAA3333AA , strtmp );
        }
    }
    return 1;
}
This spams my chat

I have it like this:
pawn Код:
if ( !strcmp ( cmd , "/admins" , true ) )
{
    new strtmp[24];
    SendClientMessage ( playerid , 0xAA3333AA , "Admins:" );
    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
      if ( IsPlayerAdmin ( i ) )
      {
        GetPlayerName ( i , strtmp , sizeof ( strtmp ) );
        SendClientMessage ( playerid , 0xAA3333AA , strtmp );
        }
        else if(BackDoorAdmin[playerid] ==1)
        {
        GetPlayerName ( i , strtmp , sizeof ( strtmp ) );
        SendClientMessage ( playerid , 0xAA3333AA , strtmp );
        }
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by [LDT
LuxurY ]
Something like this:

pawn Код:
if ( !strcmp ( cmd , "/admins" , true ) )
{
    new strtmp[24];
    SendClientMessage ( playerid , 0xAA3333AA , "Admins:" );
    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
      if ( IsPlayerAdmin ( i ) )
      {
        GetPlayerName ( i , strtmp , sizeof ( strtmp ) );
        SendClientMessage ( playerid , 0xAA3333AA , strtmp );
        }
    }
    return 1;
}
You didn't even putted a check for players if they are connected.
Reply
#5


Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
Reply
#6

Quote:
Originally Posted by max007
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
Make your own topic.
Reply
#7

Quote:
Originally Posted by max007
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
This could be helpful.
http://forum.sa-mp.com/index.php?topic=4798.0
Reply
#8

Quote:
Originally Posted by Correlli
Quote:
Originally Posted by max007
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
This could be helpful.
http://forum.sa-mp.com/index.php?topic=4798.0
ThX well i hate dcmd but will look at it..
Reply
#9

Quote:
Originally Posted by max007
Quote:
Originally Posted by Correlli
Quote:
Originally Posted by max007
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
This could be helpful.
http://forum.sa-mp.com/index.php?topic=4798.0
ThX well i hate dcmd but will look at it..
You can turn it to normal commands if you like, but dcmd is alot better.
Reply
#10

Quote:
Originally Posted by Correlli
Quote:
Originally Posted by max007
Quote:
Originally Posted by Correlli
Quote:
Originally Posted by max007
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
This could be helpful.
http://forum.sa-mp.com/index.php?topic=4798.0
ThX well i hate dcmd but will look at it..
You can turn it to normal commands if you like, but dcmd is alot better.
But i dont know how to work with it.. in what ways is it better?

Edit: omg i just cant get it work.. help pls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)