SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 06/07/2018, 08:24 PM   #1
Join Date: Jun 2018
Posts: 70
Reputation: 0
Default Help about Thor class

So guys I am working on 1 gamemode and I want to create class called "Thor" so I want it's ability to go in air by pressing LALT and come down with speed so to near Enemy get damaged 50 percent health lost of enemy and 0 of Thor
Neom is offline   Reply With Quote
Old 07/07/2018, 06:24 AM   #2
coool's Avatar
Join Date: Feb 2013
Location: Republic of Pakistan
Posts: 597
Reputation: 53
Default Re: Help about Thor class

To check if the player has pressed LALT use "OnPlayerKeyPress".. for jumping in air use "SetPlayerVelocity".. for decreasing enemy health check with "IsPlayerInRangeOfPoint" and damage the players in range.. but Thor would lose health because of jumping from height you can store its health in a variable and then give back after collision.
sorry for my bad English.
coool is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a class selection screen with class system hardiksingh5 Scripting Help 7 24/03/2015 07:54 AM
OnPlayerRequest class, Class Select doesn't appears MiGu3X Scripting Help 5 06/02/2013 01:01 AM
Help Setting A Player Class before class selection Madd Kat Scripting Help 5 09/02/2012 06:19 PM
help me with Class Selection Showing the class name The_Cobra Help Archive 2 05/02/2010 06:22 PM

All times are GMT. The time now is 09:46 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.