01.02.2015, 09:50
I want to create a command that sends a message to all admins online.
I want it to be like: /helpme How can I startup a vehicle?
and that the admin sees ((Playername Asks: How can I startup a vehicle?))
and I want that they are only able to send a helpme message again after the other one is already handled.
This is what I have so far.
I want it to be like: /helpme How can I startup a vehicle?
and that the admin sees ((Playername Asks: How can I startup a vehicle?))
and I want that they are only able to send a helpme message again after the other one is already handled.
This is what I have so far.
pawn Код:
CMD:helpme(playerid, params[])
{
new
staff[MAX_PLAYER_NAME],
message[128]
;
if (sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COL_GREY, "USAGE: /helpme [Question].");
format(message, 128, "((%s asks: %s))", GetName(playerid), message);
SendClientMessage(staff, COL_YELLOW, message);
return 1;
}