Jump to content
  • 0

[HELP]Scripting Comenzi ZCMD LuxAdmin


Question

Posted

Salut as avea nevoie de ajutor la niste comenzi de facut nu pot sa fac comenzile /setrespect /setkills /setdeaths in procesorul zcmd

daca se poate un model sau comanda facuta chiar va rog frumos.

1 answer to this question

Recommended Posts

  • 0
Posted
CMD:setkills(playerid, params[]){
	if(PlayerInfo[playerid][pLogged] == true) return 0; // Schimbi cu ce variabila ai tu sa verifici daca playerul este logat
	//VErificam daca playerul este admin:
	if(PlayerInfo[playerid][Level] >= 4){ // schimbi tu cu ce lvl vrei la admin
		new id, kills;
		if(sscanf(params, "ui", id, kills)) return SendClientMessage(playerid, -1, "Use: /setkills");
		if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Jucatorul nu este online");
		PlayerInfo[playerid][pKills] = kills; // Inlocuiesti cu variabila ta in care stochezi kills
	}
	else
		return 0;
	return 1;
}

Asta ar fi idea de baza , merge la fel si pentru setrespect si setdeaths doar ca inlouiesti acel PlayerInfo[playerid][pKills] cu ce variabila ai tu pentru respect si deaths.

Din pacate nu pot descarca lux admin , iar topicul este foarte neclar (apar prea multe lucruri contradictori)

Sper sa te ajute

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