Simple help needed! -
UnknownGamer - 03.08.2012
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetPlayerWeapon(playerid) == 33 && kickgun[playerid] == 1) {
SendClientMessage(damagedid,COLOR_RED, "You have been kicked by The Quake Industries Shotgun for AFK.");
Kick(damagedid);
}
return 1;
}
How would I make that display a sentance for everybody like "SOANDSO has been kicked by the shotgun for AFK" on SENDCLIENTMESSAGETOALL
Re: Simple help needed! -
A7X_CEEJAY - 03.08.2012
Change 'SendClientMessage' to 'SendClientMessageToAll'
Re: Simple help needed! -
kurzagfx - 03.08.2012
Hmm is this from HBG's Script? josh Quake is the one who added the Quake industries thing
Re: Simple help needed! -
UnknownGamer - 03.08.2012
yeah, I said to make it so it shows the name. Who was kicked. How wud I do this?
Re: Simple help needed! -
Majed - 03.08.2012
If u want to make all then yeah
Код:
SendClientMessageAll
Or
Код:
SendClientMessageToAll
Don't remember one of those xD.
Re: Simple help needed! -
Devilxz97 - 04.08.2012
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new string[256], pName[MAX_PLAYER_NAME];
if(GetPlayerWeapon(playerid) == 33)
{
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string),"%s have been kicked by The Quake Industries Shotgun for AFK", pName);
SendClientMessageToAll(-1, string);
Kick(damagedid);
}
return 1;
}
Re: Simple help needed! -
UnknownGamer - 04.08.2012
How do I add "COLOR_RED" to that script, I can't add it without it erroring on me for some reason.
Код:
SendClientMessageToAll(-1, COLOR_RED, string);
That errors, anyone correct it please.
Re: Simple help needed! -
Ranama - 04.08.2012
#define COLOR_RED 0xff0000ff
at the start of your script
hope it helped ^^
Re: Simple help needed! -
Skaizo - 04.08.2012
SendClientMessageToAll(COLOR_RED, string);
should from format
exemple:
pawn Код:
new string[128];
format(string,sizeof(string), "hello man",string);
SendClientMessageToAll(COLOR_RED, string);
Re: Simple help needed! -
DaRkM - 12.08.2012
* DaRkM blushes.
<3
- Josh Quake