18.12.2008, 03:11
i know how to make /help command and /teleport commands! for example (to make a help command):
PAWN Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
SendClientMessage(playerid, 0xFF9900AA, "/teleport for list of teleports and /rules for the rules");
{
return 1;
}
return 0;
}
Note: its only an examp dont use!
PAWN Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
SendClientMessage(playerid, 0xFF9900AA, "/teleport for list of teleports and /rules for the rules");
{
return 1;
}
return 0;
}
Note: its only an examp dont use!