make single command global - 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: make single command global (
/showthread.php?tid=278445)
make single command global -
rekatluos - 22.08.2011
how can i make this
pawn Code:
if (strcmp(cmd, "/deleteacc", true)==0)
{
if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deleteacc [PlayerName]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(giveplayer));
format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
ABroadCast(COLOR_LIGHTRED,string,1);
format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
printf(string);
SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
}
return 1;
}
so it unlocks ALL accounts? please edit and give me ,thx in advance
Re: make single command global -
Improvement™ - 22.08.2011
Quote:
Originally Posted by rekatluos
how can i make this
so it unlocks ALL accounts? please edit and give me ,thx in advance
|
What do you mean exactly? The command says /deleteacc, doesn't that mean Delete Account? Or do you want another command to unlock all accounts? Could you please give us (the readers) an example of what you want exactly.
Re: make single command global -
rekatluos - 22.08.2011
in the accounts there is a "Locked = " part ,by /deleteaccount i set that to 0 (meaning unlocked)
i have a problem with the server getting banned and its pretty much fucked up to unlock all of them (as i have many users and i dont know which ones are locked)
Re: make single command global -
rekatluos - 24.08.2011
BUMP ,no-one?
Re: make single command global -
Kush - 24.08.2011
This is the unban command from LARP.