22.01.2010, 09:41
DELETE PLEASE
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
new vehicleid = GetPlayerVehicleID(playerid);
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
else if(GetPlayerTeam(playerid) == 1) return SendClientMessage(playerid, COLOR_RED, "You're not a cop")
else
{
if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
if(sscanf(params, "s", message))
{
SendClientMessage(playerid, COLOR_RED, "Usage: /megaphone [message]");
}
Originally Posted by » RэРиR «
It's time to realy learn pawn language.
dcmd_megaphone(playerid, params[]) { new string[128], pName[MAX_PLAYER_NAME]; if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]"); GetPlayerName(playerid, pName, sizeof pName); format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName); SendClientMessageToAll(COLOR, string); return 1; } You can edit the rest by urself. |