Advertisement
DraKiNs

[COD] KeyChange ao Pickup

Jul 1st, 2011
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.38 KB | None | 0 0
  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2. {
  3.     if(newkeys == KEY_SECONDARY_ATTACK) // caso a nova tecla for a tecla da mira
  4.     {                                                  
  5.         if(IsPlayerInRageOfPoint(playerid,1.0,x,y,z)) // coordenada pickup
  6.         {
  7.             ShowMenuForPlayer(menuid, playerid); //funcao
  8.         }
  9.     }
  10.     return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement