Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRPC:ClientJoin(playerid, BitStream:bs)
- {
- new client_data[E_CLIENT_STRUCT];
- BS_ReadValue(
- bs,
- PR_INT32, client_data[iVersion],
- PR_UINT8, client_data[byteMod],
- PR_UINT8, client_data[byteNicknameLen],
- PR_STRING, client_data[NickName], client_data[byteNicknameLen],
- PR_UINT32, client_data[uiClientChallengeResponse],
- PR_UINT8, client_data[byteAuthKeyLen],
- PR_STRING, client_data[auth_key], client_data[byteAuthKeyLen],
- PR_UINT8, client_data[iClientVerLen],
- PR_STRING, client_data[ClientVersion], client_data[iClientVerLen]
- );
- //printf( "auth_key: %s ", client_data[auth_key]);
- //p_temp[playerid][no_valid_client] = false;
- p_temp[playerid][mobile_actual] = 0;
- /*for(new i = 0; i < sizeof(m_szClientVersions); i++)
- {
- if(GetString(client_data[auth_key], m_szClientVersions[i]))
- {
- p_temp[playerid][no_valid_client] = true;
- break;
- }
- }*/
- // new client
- p_temp[playerid][is_mobile] = GetString(client_data[auth_key], "4DB9BDE5A38450042D3D72C65952846E2C6826946B") ? true :
- GetString(client_data[auth_key], "13A1938A851FF3C0A9B3E069CB142D02F67FF978B74") ? true :
- GetString(client_data[auth_key], "10EF38095514DBF164C8FD10438A3C9BCB4DA4A9E15") ? true :
- GetString(client_data[auth_key], "E02262CF28BC542486C558D4BE9EFB716592AFAF8B") ? true :
- GetString(client_data[auth_key], "C4B408C3A1C34E2E544EF21678A53108B2B8AE2518") ? true :
- GetString(client_data[auth_key], "1034FEB5335C789FDC51EC085C9C0B2A91DA79E696B") ? true :
- GetString(client_data[auth_key], "10B3D2B1317ADD02CC1F680BC500A8BC0FD7AD42CE7") ? true :
- GetString(client_data[auth_key], "149C15C7E69314B147D55069C245763C07DD8AB4429") ? true :
- false;
- if( GetString(client_data[auth_key], "10B3D2B1317ADD02CC1F680BC500A8BC0FD7AD42CE7") /*delete*/ ||
- GetString(client_data[auth_key], "149C15C7E69314B147D55069C245763C07DD8AB4429")) p_temp[playerid][mobile_actual] = 1;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement