Jump to content
  • 0

[GF/RP] Rezolvare comanda /deblock


Question

Posted

Doresc si eu rezolvarea comenzii /deblock

if (strcmp(cmd, "/deblock", true)==0)
	{
	    if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)
	    {
            tmp = strtok(cmdtext, idx);
	        if(!strlen(tmp))
			{
		        SendClientMessage(playerid, COLOR_WHITE, "UTILIZEAZA: /deblock [Nume_Prenume] (Contul cu acest nume va fi sters din baza de date)");
	            return 1;
		 	}
		 	giveplayerid = ReturnUser(tmp);
		 	GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
		 	GetPlayerName(playerid, sendername, sizeof(giveplayer));
		 	format(string, 256, "ATENTIE ADMINI: %s a deblocat contul lui %s", sendername, tmp);
		 	ABroadCast(COLOR_YELLOW,string,1);
			format(string, 256, "ATENTIE ADMINI: %s a deblocat contul lui %s ", sendername, tmp);
			printf(string);
			PlayerInfo[giveplayerid][pLocked] = 0;
		}
		return 1;
	}

5 answers to this question

Recommended Posts

Posted

Pai eu cred ca este mai de folos /deleteaccount ?

sterge contul si celui care este off

if (strcmp(cmd, "/deleteaccount", true)==0)
	{
		if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337)
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /deleteaccount [PlayerName]");
				return 1;
			}
   			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, 256, "AdmWarning: %s has delete acount to player %s", sendername,tmp);
			ABroadCast(COLOR_YELLOW,string,1);


			format(string, 256, "AdmWarning: %s has delete acount to player %s", sendername,tmp);
			printf(string);
			format(string,sizeof(string),"Users/%s.ini",tmp);
			fremove(string);
			SendClientMessage(playerid, COLOR_GRAD1, "Account have been DELETED");
		}
		return 1;
	}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.