Jump to content
  • 0

Ce pluginuri imi recomandati


Question

11 answers to this question

Recommended Posts

Posted

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.

Posted

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

Posted

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
Posted

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 ...

|

|

|

|

|

Posted

pai da dar imi schimba si parola la account cand dau unban. dar nu stiu de ce....

Cred ca din cauza ca le ai pe toate pe o linie, schimba fwrite in dini ...
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.