Detect player when fell at water off
#8

Quote:
Originally Posted by Swankeh
View Post
PHP Code:
public OnPlayerUpdate(playerid){
    new 
FloatPosXFloatPosYFloatPosZ;
    
GetPlayerPos(playeridPosXPosYPosZ);
    if(
PosZ 0.0){
    
SendClientMessage(playerid, -1"You are in the water");
    
//Your Code.
    
}
    return 
1;

It worked good, thank you mate +rep
By the way, just one more thing, can I create a timer to run the action I wanna take, for example: the player fell at the water off and after 5 seconds he will be automatically killed by setplayerhealth.
Reply


Messages In This Thread
Detect a vehicle when falling at water off - by leon44 - 03.10.2017, 03:14
Re: Detect player when fell at water off - by DTV - 03.10.2017, 03:21
Re: Detect player when fell at water off - by leon44 - 03.10.2017, 03:31
Re: Detect player when fell at water off - by Dignity - 03.10.2017, 03:46
Re: Detect player when fell at water off - by leon44 - 03.10.2017, 04:07
Re: Detect player when fell at water off - by Dignity - 03.10.2017, 04:10
Re: Detect player when fell at water off - by Swankeh - 03.10.2017, 04:14
Re: Detect player when fell at water off - by leon44 - 03.10.2017, 07:10
Re: Detect player when fell at water off - by Dignity - 03.10.2017, 07:11
Re: Detect player when fell at water off - by leon44 - 03.10.2017, 07:15

Forum Jump:


Users browsing this thread: 2 Guest(s)