Advertisement
garfield

[COD]: Pegar primeiro/segundo nome do player.

Oct 11th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  1. stock GetPlayerSurName(pid){
  2.     static
  3.         Name[24],
  4.         Position
  5.     ;
  6.    
  7.     GetPlayerName(pid, Name, 24);
  8.     Position = strfind(Name, "_", true);
  9.    
  10.     strdel(Name, 0, Position+1);
  11.     return Name;
  12. }
  13.  
  14. stock GetPlayerFirstName(pid){
  15.     static
  16.         Name[24],
  17.         Position
  18.     ;
  19.  
  20.     GetPlayerName(pid, Name, 24);
  21.     Position = strfind(Name, "_", true);
  22.  
  23.     strdel(Name, Position, strlen(Name));
  24.     return Name;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement