Advertisement
DraKiNs

[COD] GetPlayerPosEx

Jul 28th, 2011
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1.  
  2. Float:GetPlayerPosEx(playerid, pos)
  3. {
  4.    static
  5.       Float:coordenadas[4];
  6.  
  7.    GetPlayerPos(playerid, coordenadas[0], coordenadas[1], coordenadas[2]);
  8.    GetPlayerFacingAngle(playerid, coordenadas[3]);
  9.  
  10.    if(pos == 'x') return coordenadas[0];
  11.    if(pos == 'y') return coordenadas[1];
  12.    if(pos == 'z') return coordenadas[2];
  13.    if(pos == 'a') return coordenadas[3];
  14.  
  15.    return 0xFFFFFFFF;
  16. }
  17.  
  18. //  Criado por Bruno da Silva
  19. // www.ips-team.forumeiros.com
  20. //  www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement