Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- printf("Loc: %.3f %.3f %.3f", fX, fY, fZ);
- if(weaponid == WEAPON_SNIPER && !(fX == 0.0 || fY == 0.0 || fZ == 0.0))
- {
- SetPlayerPos(playerid, fX, fY, fZ + 2.0);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/telgun", true)) GivePlayerWeapon(playerid, WEAPON_SNIPER, 65535);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement