SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/02/2012, 12:02 PM   #1
gunnrcrakr
Little Clucker
 
Join Date: May 2010
Posts: 33
Reputation: -2
Wink I want to check player position, How I Do ?

When player stand on sky at z = 5000(Height) I want to check when player stay that player to death.

new Float,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);

if(PlayerInfo[playerid][z] > 5000)
{
SetPlayerHealth(playerid, 0);
}

How I do it, Please help me thank you, Sorry my language :')
gunnrcrakr is offline   Reply With Quote
Old 15/02/2012, 12:41 PM   #2
[MG]Dimi
High-roller
 
[MG]Dimi's Avatar
 
Join Date: Mar 2011
Location: Serbia
Posts: 1,239
Reputation: 144
Default Re: I want to check player position, How I Do ?

Quote:
Originally Posted by gunnrcrakr View Post
When player stand on sky at z = 5000(Height) I want to check when player stay that player to death.

new Float,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);

if(PlayerInfo[playerid][z] > 5000)
{
SetPlayerHealth(playerid, 0);
}

How I do it, Please help me thank you, Sorry my language :')
pawn Code:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(z > 5000.0) SetPlayerHealth(playerid,0.0);
__________________
Scripting Admin/Account/VIP Systems for $$$ using ZCMD,dcmd, Dini, MySQL and sscanf.Scripting IRC Systems with all possible functions. (Echo channels, Chat channels, Admin channels...)Long time Experience with IRC Systems.For both offers PM me
Mini Games ServerServer IP:178.238.236.62:7777
[MG]Dimi 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
how to check if a player's position has been drastically changed? T0pAz Scripting Help 4 11/02/2012 03:42 PM
Can someone send an include or something for area check?(Position) KfirRP Scripting Help 2 14/11/2011 07:21 PM
[HELP] TextDraw position check kakalakamakapaka Help Archive 5 26/04/2011 02:48 PM
Check if the player spawned in the position 0ne Help Archive 12 19/11/2010 02:04 PM
1 km = How much player position? VirSpectorX Help Archive 4 13/04/2010 01:25 PM


All times are GMT. The time now is 11:10 PM.


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