SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 13/06/2019, 05:07 PM   #61
Uberanwar
Gangsta
 
Uberanwar's Avatar
 
Join Date: May 2012
Location: Malaysia
Posts: 827
Reputation: 62
Default Re: MapAndreas Include

Does anyone have a code on how to check if player is on ground with this include?
Uberanwar is offline   Reply With Quote
Old 13/06/2019, 05:18 PM   #62
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 330
Reputation: 82
Default Re: MapAndreas Include

Quote:
Originally Posted by Uberanwar View Post
Does anyone have a code on how to check if player is on ground with this include?
PHP Code:
CMD:onground(playeridparams[])
{
    new 
Float:xFloat:yFloat:zFloat:z2;
    
GetPlayerPos(playeridxyz);
    
GetPointZPos(xyz2);
    if(
>= (z2-2.0) && <= (z2+2.0)) return SendClientMessage(playerid0x00FF00FF"On ground");
    
SendClientMessage(playerid0xFF0000FF"Not on ground");
    return 
1;

Lokii is offline   Reply With Quote
Reply

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
[Plugin] MapAndreas plugin v1.0 beta Kalcor Plugin Development 262 06/09/2017 09:05 PM
[FilterScript] [FS] Bomber script / MapAndreas usage example krisk Filterscripts 32 11/07/2011 11:02 AM
Need <mapandreas> include newnewnew Help Archive 2 12/01/2011 07:29 PM
mapandreas.dll problem ? Rocky Balboa Help Archive 6 11/07/2010 05:45 PM


All times are GMT. The time now is 08:44 PM.


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