24.03.2013, 14:59
Hi,
Today I'll explain how fixare bugs SendChat and SendCommand.
First you need to change the include "a_npc"
Find "native SendChat" and "native SendCommand" and delete them.
Add to your gamemode or include this code:
And
To use these functions you have to do it this way
SendChat:
SendCommand:
Today I'll explain how fixare bugs SendChat and SendCommand.
First you need to change the include "a_npc"
Find "native SendChat" and "native SendCommand" and delete them.
Add to your gamemode or include this code:
Код:
stock SendChat(color,name[],message[]) { new msg[657]; format(msg, sizeof(msg),"%s: {"#BIANCO2"}%s",name,message); SendClientMessageToAll(color,msg); return true; }
Код:
stock SendCommand(command[]) { for(new i=0; i<MAX_PLAYERS; i++) CallRemoteFunction("OnPlayerCommandText", "is", i, command); return true; }
SendChat:
Код:
SendChat(COLOR,NAME,MESSAGE);
Код:
SendCommand(/COMMAND);