Jump to content

[Help]/hc


HussaiN

Recommended Posts

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.

Link to comment
Share on other sites

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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