12/02/2024 12:33
(Esta mensagem foi modificada pela última vez a: 12/02/2024 17:01 por xbruno1000x.)
por algum motivo eu uso o comando e a mensagem da string simplismente nao aparece no chat, alguem ajuda?
Código:
if (strcmp(cmd, "/abd", true) == 0)
{
new fardado = false;
for (new s; s < 16; s++)
{
if (GetPlayerSkin(playerid) == FardaSkin[s] ||
GetPlayerSkin(playerid) == 265 ||
GetPlayerSkin(playerid) == 267 ||
GetPlayerSkin(playerid) == 266 ||
GetPlayerSkin(playerid) == 281 ||
GetPlayerSkin(playerid) == 282 ||
GetPlayerSkin(playerid) == 283 ||
GetPlayerSkin(playerid) == 284 ||
GetPlayerSkin(playerid) == 285 ||
GetPlayerSkin(playerid) == 286 ||
GetPlayerSkin(playerid) == 287 ||
GetPlayerSkin(playerid) == 288 ||
GetPlayerSkin(playerid) == 289 ||
GetPlayerSkin(playerid) == 306 ||
GetPlayerSkin(playerid) == 307 ||
GetPlayerSkin(playerid) == 308 ||
GetPlayerSkin(playerid) == 309 ||
GetPlayerSkin(playerid) == 310 ||
GetPlayerSkin(playerid) == 311)
{
fardado = true;
break;
}
}
if (!fardado)
{
return SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não está fardado.");
}
else
{
new string[128];
new corp[32];
if (PROF[playerid] == PM)
{
format(corp, sizeof corp, "PM");
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && i != playerid)
{
new Float:px, Float:py, Float:pz;
GetPlayerPos(i, px, py, pz);
new Float:distance = GetDistance3D(x, y, z, px, py, pz);
if (distance <= 15.0)
{
format(string, sizeof string, "[{FFD700}%s][%s] ENCOSTA!! ENCOSTA!! ABORDAGEM DE ROTINA.", corp, PlayerName(playerid));
SendClientMessage(playerid, COR_AMARELO, string);
SendClientMessage(i, COR_AMARELO, string);
}
}
}
}
return 1;