Quote:
Originally Posted by [HLF]Southclaw
Here's what I knocked up in a few minutes, feel free to change the colours etc
pawn Code:
CMD:w(playerid, params[]) { // The entire string minus the '/', 'w'and ' ' should be 125 max right? if(sscanf(params, "s[125]" // A counter to check how many players the message was sent to // in order to give a return message if the player is just talking to no one. new count;
foreach(new i : Player) { if(IsPlayerInRangeOfPoint(i, WHISPER_RANGE, x, y, z) && i != playerid) // If the currently iterated player ID is near the player who typed the command // And the iterated player ID doesn't equal the command player ID, proceed: { SendClientFormatMessage(i, 0xF2F5A9FF, "***%P {FFFFFF}whispers: {F2F5A9}%s", playerid, params); count++; } } if(count == 0)SendClientMessage(playerid, 0x, "None can't hear you! You will be forever alone. :c"); return 1; }
|
This script gives like 26 errors xD. :P Can someone try to fix it?