Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Exemplo de Uso:
- new name[MAX_PLAYER_NAME];
- GetPlayerTag(playerid, name, sizeof(name));
- Digamos que o nome do cara seja [iPs]BrunoSilva.
- Retornará iPs na string 'name'
- */
- GetPlayerTag(playerid, string[], size = MAX_PLAYER_NAME)
- {
- GetPlayerName(playerid, string, size);
- new a = strfind(string, "[", true);
- if(!a)
- {
- format(string, size, string[a]);
- string[strfind(string, "]", true) + 1] = EOS;
- if(strlen(string) == 2 || a != -1) GetPlayerName(playerid, string, size);
- return string;
- }
- return string;
- }
- // Criado por Bruno da Silva
- // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement