05.06.2011, 15:32
How to put my own message instead of SERVER: Unknown command. ??
return SendClientMessage(playerid, COLOR_YELLOW, "Your message comes here"); } |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
return SendClientMessage(playerid, red, "SERVER: Unknown Command");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//your commands
//delete the old return
return SendClientMessage(playerid, COLOR_YELLOW, "Your message comes here");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
return SendClientMessage(playerid, red, "SERVER: Unknown Command");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
SendClientMessage(playerid,color,"text");
return 1;
}
pawn Код:
It supouse to be pawn Код:
|
CMD:something( playerid, params[ ] ) {
return SendClientMessage( playerid, -1, "Lol. " );
}
CMD:something( playerid, params[ ] ) {
SendClientMessage( playerid, -1, "Lol. " );
return 1;
}