You should still of searched. I did all of the commands except for the vehicle control commands (engine, windows, etc).
pawn Код:
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_ORANGE 0xF6970CAA
#defome COLOR_GREY 0xCECECEFF
#define COLOR_ME 0xB360FDFF
CMD:report(playerid, params[])
{
new id, message[112];
if(sscanf(params, "us[112]", id, message))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /report [nick/id] [message]");
if(id == INVALID_PLAYER_ID)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: You specified an invalid player ID.");
new string[128];
if(strlen(message) > 40)
{
format(string, sizeof(string), "REPORT: Sent by %s(%d) against %s(%d).", GetName(playerid), playerid, GetName(id), id);
// I don't know what your function is for sending messages to admins, that would go here (send "string" as the message).
format(string, sizeof(string), "REPORT MESSAGE: %s", message);
// I don't know what your function is for sending messages to admins, that would go here (send "string" as the message).
}
else
{
format(string, sizeof(string), "REPORT: Sent by %s(%d) against %s(%d). Message: %s", GetName(playerid), playerid, GetName(id), id, message);
// I don't know what your function is for sending messages to admins, that would go here (send "string" as the message).
}
return 1;
}
CMD:whisper(playerid, params[])
{
new id, message[41];
if(sscanf(params, "us[41]", id, message))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /report [nick/id] [message]");
if(id == INVALID_PLAYER_ID)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: You specified an invalid player ID.");
if(strlen(message) > 41)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: Your message cannot be longer than 41 characters.");
new string[128];
format(string, sizeof(string), "Whisper| %s says; %s", GetName(playerid), message);
SendClientMessage(id, COLOR_WHITE, string);
format(string, sizeof(string), "Whisper| %s sent to %s", message, GetName(id));
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
CMD:me(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /me [action]");
new string[128];
format(string, sizeof(string), "* %s %s", GetName(playerid), params);
SendNearbyMessage(playerid, COLOR_ME, string);
return 1;
}
CMD:do(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /do [enviornment]");
new string[128];
format(string, sizeof(string), "%s (( %s ))", params, GetName(playerid));
SendNearbyMessage(playerid, COLOR_ME, string);
return 1;
}
CMD:ooc(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /(o)oc [message]");
if(strlen(params) > 91)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: Your message cannot be longer than 91 characters.");
new string[128];
format(string, sizeof(string), "OOC| %s(%d): %s", GetName(playerid), playerid, params);
SendClientMessageToAll(COLOR_ORANGE, string);
return 1;
}
CMD:b(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /b [message]");
if(strlen(params) > 90)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: Your message cannot be longer than 90 characters.");
new string[128];
format(string, sizeof(string), "(( %s(%d): %s ))", GetName(playerid), playerid, params);
SendNearbyMessage(playerid, COLOR_GREY, string);
return 1;
}
stock SendNearbyMessage(playerid, color, string[])
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, 20, Pos[0], Pos[1], Pos[2]))
SendClientMessage(i, color, string);
}
}
include files.