Advertisement
Hiddos

telgun

Jan 29th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.45 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  4. {
  5.     printf("Loc: %.3f %.3f %.3f", fX, fY, fZ);
  6.     if(weaponid == WEAPON_SNIPER && !(fX == 0.0 || fY == 0.0 || fZ == 0.0))
  7.     {
  8.         SetPlayerPos(playerid, fX, fY, fZ + 2.0);
  9.     }
  10.     return 1;
  11. }
  12.  
  13. public OnPlayerCommandText(playerid, cmdtext[])
  14. {
  15.     if(!strcmp(cmdtext, "/telgun", true)) GivePlayerWeapon(playerid, WEAPON_SNIPER, 65535);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement