Advertisement
ZumeZero

[Function] GetPlayerSecondName

Aug 24th, 2014
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.27 KB | None | 0 0
  1. stock GetPlayerSecondName(playerid) // Zume
  2. {
  3.     new
  4.         x,
  5.         name[MAX_PLAYER_NAME];
  6.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  7.     while(x < strlen(name)){
  8.         if(name[x] == '_'){
  9.             strdel(name, 0, x+1);
  10.             return name;
  11.         }
  12.         x++;
  13.     }
  14.     return name;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement