Jump to content
  • 0

Admin Chat


Deejaybwg

Question

Am facut un Admin Chat dupa comanda pentru VIP CHAT.

Comanda pentru VIP CHAT:

[pawn]dcmd_vc(playerid,params[])

{

#pragma unused params

if(IsPlayerVipMember(playerid))

{

if(!strlen(params)) return

SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vc [Text] ") &&

SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");

new string[128];

format(string, sizeof(string), "|- **VIP {FFFFFF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);

return SendClientMessageToAll(LIGHTBLUE,string);

}

else return ErrorMessages(playerid, 7);

}[/pawn]

Si comanda pentru Admin Chat:

[pawn]dcmd_ac(playerid,params[])

{

#pragma unused params

if(AccInfo[playerid][Level] >= 1

{

if(!strlen(params)) return

SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ac [Text] ") &&

SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");

new string[128];

format(string, sizeof(string), "|- {0049FF}Administrator {00C0FF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);

return SendClientMessageToAll(LIGHTBLUE,string);

}

else return ErrorMessages(playerid, 7);

}[/pawn]

Am pus si la OnPlayerCommandText:

[pawn]dcmd(ac,2,cmdtext);[/pawn]

Am dat compile si mi-a dat o eroare:

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(4182) : error 029: invalid expression, assumed zero

Cum o rezolv ?

www.youtube.com/thebwgg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Schimba

dcmd_ac(playerid,params[])
{
	#pragma unused params
	if(AccInfo[playerid][Level] >= 1
	{
 		if(!strlen(params)) return
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ac [Text] ") &&
		SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
		new string[128];
		format(string, sizeof(string), "|- {0049FF}Administrator {00C0FF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);
		return SendClientMessageToAll(LIGHTBLUE,string);
	}
	else return ErrorMessages(playerid, 7);
}

cu

dcmd_ac(playerid,params[])

{

#pragma unused params

if(AccInfo[playerid][Level] >= 1)

{

if(!strlen(params)) return

SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ac [Text] ") &&

SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");

new string[128];

format(string, sizeof(string), "|- {0049FF}Administrator {00C0FF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);

return SendClientMessageToAll(LIGHTBLUE,string);

}

else return ErrorMessages(playerid, 7);

}

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.