12/02/2024 14:34
Com o break o código não continua. Precisa removê-lo.
É interessante que ao invés de fazer uma verificação enorme pra saber se está fardado, use uma função para facilitar.
Uso:
É interessante que ao invés de fazer uma verificação enorme pra saber se está fardado, use uma função para facilitar.
Código PHP:
stock Fardado(playerid)
{
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)
return true;
return false;
}
Código PHP:
if(!Fardado[playerid])
return SendClientMessage(playerid, -1, "Você não está fardado.");