public OnPM_Move( OrpheuStruct:ppmove, server ) { g_ppmove = ppmove; }
public OnPM_PlayerMove() { static id, onground = 0;
id = OrpheuGetStructMember(g_ppmove,"player_index") + 1;
// player on ground. if(OrpheuGetStructMember(g_ppmove,"onground") != -1) { if(!check_flag(onground,id)) { set_flag(onground,id); client_print(id, print_center, "you're on ground!"); player_on_ground(id); } } else if(check_flag(onground,id)) { client_print(id, print_center, "you're not on ground!"); remove_flag(onground,id); } }
// player landed on the ground, do something. public player_on_ground(id) { // blah blah client_print(id, print_chat, "You've landed on the ground!"); }
TESTED and works
here're the signatures for the following functions...