Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
Hey, I just downloaded a GM, But there was no /help, or /rules command, so i wanted to add it. BUT, i dont know how. I need your help ! Please, Answer me quick!
Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
Where do i locate this, Cuz i opened my amx/pwn (i forgot which one) folder with Microsoft Office...
Where and How to locate this ?
Posts: 12
Threads: 2
Joined: Jul 2010
Reputation:
0
on public OnPlayerCommandText
Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
The problem is How, Cuz its an already created server, but there is no /rules, and /help. and in that thing, there is already another command which is /killme
Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
its like this:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killme", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
Posts: 12
Threads: 2
Joined: Jul 2010
Reputation:
0
so after return 1; } create new line and put my text in there.
Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
And where do i write the rules?
Posts: 67
Threads: 9
Joined: Mar 2010
Reputation:
0
now its like this:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killme", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
if(!strcmp(cmdtext,"/help",true))
{
SendClientMessage(playerid,0xFFFFFFAA,"Help command!");
return 1;
}
}