09.08.2012, 23:33
(
Последний раз редактировалось daimon567; 10.08.2012 в 00:31.
)
Right, so I've read through some threads on the forums about this topic, but I still haven't found an answer.. Here's the script..
Doesn't matter what I do, I just keep on getting no message. I've scripted some more commands, and they all have the same problem, or they just say "SERVER: Unknown Command.". I'm a rookie in scripting, and I'm just playing around. I just don't get what I'm doing wrong. Since the rest of my "commands" gets the same message, I'm clueless on what I'm doing wrong. I could post another "command" later on, if needed.. Please help me!
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth (playerid, 0);
SendClientMessage (playerid, 0x4D34B3FF, "You have killed yourself, idiot.");
return 1;
}