y_commands (OnPlayerCommandPerformed) problem.
#7

Sure,
OnPlayerCommandPerformed:
Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
	if(!success) SendClientMessage(playerid,white,"Error message.");
	return 1;
}
Command:
Код:
YCMD:test(playerid,params[],help)
{
	#pragma unused params
	if(help) return SendClientMessage(playerid,white,"Blahblah !");
	SendClientMessage(playerid,white,"Test message. You will receive some dosh !");
	GivePlayerMoney(playerid,400);
	return 1;
}
Screenshot:


Here you go!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)