/admins command & money saving - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /admins command & money saving (
/showthread.php?tid=65645)
/admins command & money saving -
max007 - 14.02.2009
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?
Re: /admins command -
[LDT]LuxurY - 14.02.2009
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;
}
Re: /admins command -
max007 - 14.02.2009
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;
}
Re: /admins command -
El0vric - 14.02.2009
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.
Re: /admins command -
max007 - 14.02.2009
Can someone help me with making onplayerdisconnect , save to file his money life position and all things like that?
Re: /admins command -
Backwardsman97 - 14.02.2009
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.
Re: /admins command -
El0vric - 14.02.2009
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
Re: /admins command -
max007 - 14.02.2009
Quote:
Originally Posted by Correlli
|
ThX well i hate dcmd but will look at it..
Re: /admins command -
El0vric - 14.02.2009
Quote:
Originally Posted by max007
Quote:
Originally Posted by Correlli
|
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.
Re: /admins command -
max007 - 14.02.2009
Quote:
Originally Posted by Correlli
Quote:
Originally Posted by max007
Quote:
Originally Posted by Correlli
|
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