I was wondering if you could help me with a little command. I have done the command before but I have forgotten since It was a long time since I last scripted.
It would really help if these commands could be done in DCMD, that it was my script is scripted in.
pawn Код:
dcmd_shout(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE : /shout [shout message]");
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string,sizeof(string),"%s Shouts : %s",params);
GameTextToAll(string, 5000, 2); // As a GameText for all, but you can change that with SendClientMessageToAll
return 1;
}
dcmd_me(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE : /me [message]");
new string[18];
GetPlayerName(playerid, string, sizeof(string));
format(string,sizeof(string),"%s %s", params);
SendClientMessageToAll(color, string);
return 1;
}