- 0
problema la whisper
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
InceMan
cand dau /w cuiva imi zice That player's whispers aren't enabled cum fac sa nu mai apara si playeri sa poata vorbii nici comanda enabled nu o am
CMD:whisper(playerid, params[]) {
new
message[128],
id;
if(sscanf(params, "us[128]", id, message)) {
SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/whisper [playerid] [message]");
}
else
{
if(FindIP(message) || GasesteReclama(message))
{
playerVariables[playerid][pMuted] = 5;
format(szMessage, sizeof(szMessage), "%s is possibly server advertisting (%s)", playerVariables[playerid][pNormalName], message);
submitToHelpersAndAdmins(szMessage, COLOR_RED);
return 0;
}
if(IsPlayerConnected(id) && playerVariables[id][pStatus] >= 1) {
if(IsPlayerInRangeOfPlayer(playerid, id, 2.0)) {
if(playerVariables[id][pSeeWhisper] == 0) {
new
giveplayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "%s whispers: %s", szPlayerName, message);
SendClientMessage(id, COLOR_NICESKY, szMessage);
GetPlayerName(id, giveplayerName, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "You whisper to %s: %s", giveplayerName, message);
SendClientMessage(playerid, COLOR_NICESKY, szMessage);
}
else SendClientMessage(playerid, COLOR_GREY, "You're too far away.");
}
else {
SendClientMessage(playerid, COLOR_GREY, "That player's whispers aren't enabled.");
}
}
else {
SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
}
}
return 1;
}
FiveGame Lands
Pawno Developer, Mapping , Scripter
Since 2016
3 answers to this question
Recommended Posts