Problem with ID
#1

Why this Doesnt work


Код:
CMD:spm(playerid,params)
{
	if(IsPlayerLuxAdmin(playerid))
	{
		new string[140];
		new id;
		format(string, sizeof(string), "PM from a silenced admin: %s", params);
		SendClientMessage(id, COLOR_WHITE, string);
		SendClientMessage(playerid, COLOR_RED, "Message sent");
		return 1;
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "[ERROR] "green"You need to be admin to use this command");
		return 1;
	}
}
How to get the id typed in the command get into the sendclientmessage so it sends to the playerid you typed?
Reply
#2

Quote:
Originally Posted by BloodyFriend
Посмотреть сообщение
Why this Doesnt work


Код:
CMD:spm(playerid,params)
{
	if(IsPlayerLuxAdmin(playerid))
	{
		new string[140];
		new id;
		format(string, sizeof(string), "PM from a silenced admin: %s", params);
		SendClientMessage(id, COLOR_WHITE, string);
		SendClientMessage(playerid, COLOR_RED, "Message sent");
		return 1;
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "[ERROR] "green"You need to be admin to use this command");
		return 1;
	}
}
How to get the id typed in the command get into the sendclientmessage so it sends to the playerid you typed?
You mean the command doesnt work ? Specify your exact problem.
Reply
#3

Yes. It must sends a pm to the ID i typed. But it doesnt work.
Reply
#4

Check out my signature, you'll see a tutorial in ZCMD which is including the "/pm"-command! Try it out!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)