Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ReplaceID(text[])
- {
- for(new i = strfind(text, "$", true), a = 0, tmp[4]; i != -1; i = strfind(text, "$", true, i))
- {
- ++i, a = 0;
- while(48 <= text[i] <= 57 && a != 4) tmp[a++] = text[i++];
- if(tmp[0] == EOS || !IsPlayerConnected(strval(tmp))) continue;
- strdel(text, i - a - 1, i);
- strins(text, pInfo[strval(tmp)][pNickname], i - a - 1, 128);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement