Jump to content
  • 0

Rezolvare comanda /deblock


Rullez.

Question

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;
	}

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

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;
	}

Ce ai facut tu acolo ? Ce vrei sa faca. Acela e numa pt cand e conectat.

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

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.