07/03/2021 10:25
Como vocês fazem pra decetar quem tá logando do Android?
Eu tentei isso aqui:
Mas não está funcionando...
Sempre que eu logo mostra a msg "You're connected from android"
Sendo que eu to logando do PC
Eu tentei isso aqui:
Código:
// detect samp android 1 (https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid)
native SendClientCheck(playerid, type, arg, offset, size);
forward OnClientCheckResponse(playerid, type, arg, response);
#pragma warning disable 239
#define IsPlayerAndroid(%0) GetPVarInt(%0, "NotAndroid") == 0Código:
public OnPlayerSpawn(playerid) {
// detect samp android 2 (essa função não pode ser chamada em OnPlayerConnect)
SendClientCheck(playerid, 0x48, 0, 0, 2);
if(IsPlayerAndroid(playerid) == true) SendClientMessage(playerid, -1, "You're connected from android");Código:
// detect samp android 3
public OnClientCheckResponse(playerid, type, arg, response)
{
switch(type)
{
case 0x48:
{
SetPVarInt(playerid, "NotAndroid", 1);
}
}
return 1;
}Mas não está funcionando...
Sempre que eu logo mostra a msg "You're connected from android"
Sendo que eu to logando do PC

![[Imagem: 560x95_FFFFFF_FF9900_000000_000000.png]](https://www.game-state.com/192.99.25.249:7777/560x95_FFFFFF_FF9900_000000_000000.png)
![[Imagem: myth_banner_vf.png?ex=68099d61&is=68084b...y=lossless]](https://media.discordapp.net/attachments/403327319671832577/1364422935925756035/myth_banner_vf.png?ex=68099d61&is=68084be1&hm=b45702f68100e19f57d756b2b16911b2f031c2220e0cf10aec52b6a9dbd520a5&=&format=webp&quality=lossless)
![[Imagem: 8nqN9Yt.png]](https://i.imgur.com/8nqN9Yt.png)