Jump to content
  • 0

Ce pluginuri imi recomandati


stefanel994

Question

11 answers to this question

Recommended Posts

Da inca o intrebare ce editor sa folosesc? ca,cu dini cand dau /unban nu imi editeaza fisierul userului bine.

y_ini este cel mai rapid, link: http://forum.sa-mp.com/showthread.php?t=175565 . Dupa cate stiu are si suport pentru dini, deci nu trebuie sa schimbi nimic, decat include.

Link to comment
Share on other sites

bun am pus asta compilat cu include no erors no nimic acum in loc de

			format(string,sizeof(string),"%s.ini",tmp);
			dini_IntSet(string, "Blocat", 0);

ce trebuie sa modific pentru comanda unban sami scrie in useru respectiv ?xD

Ar trebui sa mearga, testeaza, si vezi ca tmp sa fie GetPlayerName, nu altceva :D
Link to comment
Share on other sites

Uite cum am

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


			format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp);
			format(string,sizeof(string),"%s.ini",tmp);
			dini_IntSet(string, "Blocat", 0);
			SendClientMessage(playerid, COLOR_WHITE, "Player Unbanned");
		}
		return 1;
	}

cand dau unban in useri din formatu asta al datelor

----------------------------------------------

mi Se pune intro linie asa dar la pblocat imi modifica din 1 in 0 mai trebuie ceva pus in comanda dar nustiu ce.... daca ma poti ajuta ...

|

|

|

|

|

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.