Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salut, sunt incepator in scripting si as dori putin ajutor. Chiat daca poate, ceea ce este mai jos e vai de capu' ei, eu macar incerc.

YCMD:hc(playerid, params[], help)
{
	if(PlayerData[playerid][Helper] < 1 || PlayerData[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	new message[128], string[256];
	if(sscanf(params, "s[128]", message)) return SendUsage(playerid,"/hc <mesaj>");
	format(string, sizeof(string), "(Helper %d) %s: %s", PlayerData[playerid][Helper], GetName(playerid), message);
	format(string, sizeof(string), "(Admin %d) %s: %s", PlayerData[playerid][Admin], GetName(playerid), message);
	SendHelperMessage(culoare_helperchat, string);
	return 1;
}

Nu primesc nicio erroare, se compileaza perfect, dar cand intru in joc ca admin 6, helper 0 si incerc sa scriu ceva pe /hc imi zice ca nu sunt autorizat.

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.