Cyrill
Новичок
Ко всем командам добавляем:
Кому помогло ставим +
PHP:
if (cmd[0] == "/sms")
{
if (cmd.len() < 3)
return sendPlayerMessage(playerid, "Используйте: /sms [ID] [Текст]", COLOR_ORANGE, false);
local id = returnUser(cmd[1]);
if (!isPlayerConnected(id))
return sendPlayerMessage(playerid, "Игрок не найден!", COLOR_RED, false);
sendPlayerMessage(playerid, "Вы отправили sms "+getPlayerName(id)+": "+command.slice(cmd[0].len()+cmd[1].len()+2, command.len()), COLOR_RED, false);
sendPlayerMessage(id, "Вам sms от "+getPlayerName(playerid)+": "+command.slice(cmd[0].len()+cmd[1].len()+2, command.len()), COLOR_GRAYBLUE, false);
return 1;
}
