alongubkin / alongubkin/timer

Store Account IDs instead of Steam IDs

Open
#3 0 comments 0 reactions 1 assignee Claimed by @alongubkin View on GitHub
enhancement
Dominant language
Lasso
Stars
4
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Steam IDs are different in the Source 2009 engine and the new P2/CSGO engine. We must store account ids instead of steam ids to offer Counter-Strike: Global Offensive support.

```
GetAccountIDFromAuthString(String:authString[])
{
decl String:toks[3][16];

ExplodeString(authString, ":", toks, sizeof(toks), sizeof(toks[]));

new odd = StringToInt(toks[1]);
new halfAID = StringToInt(toks[2]);

return (halfAID*2) + odd;
}
```

(source: [itemlogger](http://hg.limetech.org/droplog/raw-file/13f677e0998d/item_logger.sp))

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.