22.02.2013, 15:22
(
Последний раз редактировалось Juniiro3; 26.02.2013 в 14:13.
)
Obrigado a todods que me ajudaram, consegui fazer o sistema e melhora-lo!
Agradecimento: Sky_.
Agradecimento: Sky_.
COMMAND:bafometro(playerid, params[])
{
new
OtherPlayer
_sx[ 50 ];
;
OtherPlayer = strval( params );
if(isnull( params ) ) return SendClientMessage( playerid, -1, "{FF0000}/bafometro [id]");
if (APlayerData[playerid][LoggedIn] == true){
if (APlayerData[playerid][PlayerClass] == ClassPolice){
if(IsPlayerConnected(OtherPlayer)) {
format(_sx, sizeof(_sx), "O nivel alcoolico do player e %s", GetPlayerDrunkLevel(OtherPlayer));
SendClientMessage(playerid, _sx);
}
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "Voce nao e um PM");
}
}
return 1;
}