/deleteaccount - 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: /deleteaccount (
/showthread.php?tid=312436)
/deleteaccount -
viddo - 21.01.2012
How can i make a /deleteaccount [ID] to be made in game instead of deleting from script files, i wanna add it to admin commands only so that a 1338 [or rcon] and level 6 admin can make it
Ps: am using a gf edit.
Re: /deleteaccount -
mineralo - 21.01.2012
what date of base you use? dudb,y_ini,dini,mysql etc
Re: /deleteaccount -
viddo - 21.01.2012
Quote:
Originally Posted by mineralo
what date of base you use? dudb,y_ini,dini,mysql etc
|
Dini
Re: /deleteaccount -
Konstantinos - 21.01.2012
pawn Код:
CMD:deleteacc( playerid, params[ ] )
{
new
id, Name[ MAX_PLAYER_NAME ], File[ 32 ];
if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You cannot use that command!" );
if( sscanf( params, "r", id ) ) return SendClientMessage( playerid, -1, "Usage: /deleteacc <ID/Part Of Name>" );
GetPlayerName( id, Name, sizeof( Name ) );
format( file, sizeof( file ), /* your_folder */"/%s.ini", Name );
if( dini_Exists( File ) ) {
dini_Remove( File );
}
else SendClientMessage( playerid, -1, "That player's Account doesn't exist!" );
return 1;
}
Re: /deleteaccount -
viddo - 21.01.2012
Код:
warning 203: symbol is never used: "deleteacc"
Re: /deleteaccount -
NaTkAkN - 21.01.2012
this is not a problem ofcommand but does not work to include zcmd.
Re: /deleteaccount -
Konstantinos - 21.01.2012
What command proccesor do you use?